Skip to content
Snippets Groups Projects
Commit 838a552f authored by Hans Fangohr's avatar Hans Fangohr
Browse files

pretend a root_dir is defined for this test

parent 2cd0938b
No related branches found
No related tags found
1 merge request!113Add tests that check our argument parsing logic (and fix bug)
Pipeline #376369 failed
......@@ -575,6 +575,11 @@ def test_get_available_releases():
def test_argument_line_parsing(mocker):
"""Check to find error in argparse logic"""
# pretend we have a rootdir defined
mock = mocker.patch(
"mpsd_software_manager.mpsd_software.get_root_dir", return_value=Path(".")
)
### available
sys.argv = ["mpsd-software-tests", "available"]
mock = mocker.patch(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment