From 1881f0284784e60e21994b17e6d944c00a37f7ef Mon Sep 17 00:00:00 2001 From: Allan Beaufour Date: Mon, 4 Mar 2024 21:13:03 -0500 Subject: [PATCH] adds simple test that runs the main function --- tests/test_main.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/test_main.py diff --git a/tests/test_main.py b/tests/test_main.py new file mode 100644 index 0000000..9610270 --- /dev/null +++ b/tests/test_main.py @@ -0,0 +1,11 @@ +"""Testing that the main function actually loads. + +This ensures that all the dependencies actually load too. +""" + +from flickr_download.flick_download import main + + +def test_main() -> None: + """Loads the main function and expects an exit code of 1.""" + assert main() == 1