Skip to content

Commit

Permalink
fix issues with testing of parser for ArgParse
Browse files Browse the repository at this point in the history
  • Loading branch information
Acribbs committed Oct 29, 2024
1 parent e523b88 commit 23f22a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_start_and_stop_are_logged_with_optparse():

def test_start_and_stop_are_logged_with_argparse():
statement = (
f"python -c 'import cgatcore.experiment as E; options, args = E.start(parser=E.ArgumentParser()); E.stop()'")
f"python -c 'import cgatcore.experiment as E; options = E.start(parser=E.ArgumentParser()); E.stop()'")

stdout = E.run(statement, return_stdout=True)
assert "job started" in stdout
Expand Down

0 comments on commit 23f22a0

Please sign in to comment.