mirror of
https://github.com/pdxlocations/contact.git
synced 2026-03-28 17:12:35 +01:00
14 lines
441 B
Python
14 lines
441 B
Python
import unittest
|
|
|
|
from contact.utilities.arg_parser import setup_parser
|
|
|
|
|
|
class ArgParserTests(unittest.TestCase):
|
|
def test_demo_screenshot_flag_is_supported(self) -> None:
|
|
args = setup_parser().parse_args(["--demo-screenshot"])
|
|
self.assertTrue(args.demo_screenshot)
|
|
|
|
def test_demo_screenshot_defaults_to_false(self) -> None:
|
|
args = setup_parser().parse_args([])
|
|
self.assertFalse(args.demo_screenshot)
|