Commit 2674d56
committed
Move SMTP driver code into a function
pytest_localserver.smtp allows running itself as a module to start up
an SMTP server, which is implemented by a bit of driver code guarded by
an `if __name__ == "__main__"` block. Typical best practice is to put
that code in a `main()` function, which is what I'm doing in this
commit.1 parent 7b6de78 commit 2674d56
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
0 commit comments