Skip to content

Commit 2027558

Browse files
committed
Add test instructions for send_notification_email
1 parent e14bbb3 commit 2027558

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Test the send_notification_email function
2+
3+
```Python
4+
from imcflibs.imagej.misc import send_notification_email
5+
6+
from imcflibs.log import LOG as log
7+
from imcflibs.log import enable_console_logging
8+
from imcflibs.log import set_loglevel
9+
10+
11+
enable_console_logging()
12+
set_loglevel(2)
13+
14+
15+
# see if logging works:
16+
log.warn("warn")
17+
log.debug("DEBUG")
18+
19+
send_notification_email(
20+
job_name="my job",
21+
recipient="nikolaus.ehrenfeuchter@unibas.ch",
22+
filename="magic-segmentation.py",
23+
total_execution_time="5 years",
24+
)
25+
26+
log.info("DONE")
27+
```

0 commit comments

Comments
 (0)