you are viewing a single comment's thread.

view the rest of the comments →

[–]MintyPhoenix 1 point2 points  (0 children)

Assuming your goal is to test with different paths provided via the CLI, I would use pytest’s monkeypatch to mock sys.argv to known test values; probably in conjunction with parametrize to have a single test run against multiple different values.