Skip to content

Commit e7f5d9c

Browse files
Add expected result section
1 parent e1f89c0 commit e7f5d9c

1 file changed

Lines changed: 15 additions & 12 deletions

File tree

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
# Test the send_notification_email function
22

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
3+
Usage:
4+
BEFORE starting Fiji, add to the `IJ_Prefs.txt` (depending on your OS, located in one of the following paths):
95

6+
Linux/Mac: `~/.imagej/IJ_Prefs.txt `
107

11-
"""
12-
Usage:
13-
BEFORE starting Fiji, add to the IJ_Prefs.txt:
8+
Windows: `C:\Users\<USERNAME>\.imagej\IJ_Prefs.txt`
149

10+
```bash
1511
.imcf.sender_email=imcf@unibas.ch
1612
.imcf.smtpserver=smtp.unibas.ch
13+
```
1714

18-
Linux/Mac: ~/.imagej/IJ_Prefs.txt
19-
Windows: C:\Users\<USERNAME>\.imagej\IJ_Prefs.txt
20-
"""
15+
```Python
16+
from imcflibs.imagej.misc import send_notification_email
2117

18+
from imcflibs.log import LOG as log
19+
from imcflibs.log import enable_console_logging
20+
from imcflibs.log import set_loglevel
2221

2322
enable_console_logging()
2423
set_loglevel(2)
@@ -37,3 +36,7 @@ send_notification_email(
3736

3837
log.info("DONE")
3938
```
39+
40+
## Expected behaviour / results
41+
42+
A mail should be sent to the address from imcf@unibas.ch, with the output in Fiji being "Successfully sent email to <nikolaus.ehrenfeuchter@unibas.ch>".

0 commit comments

Comments
 (0)