Skip to content

Commit 1881f02

Browse files
committed
adds simple test that runs the main function
1 parent edd26a9 commit 1881f02

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_main.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"""Testing that the main function actually loads.
2+
3+
This ensures that all the dependencies actually load too.
4+
"""
5+
6+
from flickr_download.flick_download import main
7+
8+
9+
def test_main() -> None:
10+
"""Loads the main function and expects an exit code of 1."""
11+
assert main() == 1

0 commit comments

Comments
 (0)