Changeset - 786db20c24f1
[Not reviewed]
0 1 0
Branko Majic (branko) - 4 years ago 2020-07-13 16:34:24
branko@majic.rs
GC-37: Fix incorrect test name (copy/paste error fix).
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
tests/test_cli.py
Show inline comments
 
@@ -575,13 +575,13 @@ def test_main_does_not_exit_if_it_calls_function_that_returns_success(tmpdir):
 
        return subparser
 

	
 
    gimmecert.cli.main()  # Should not raise
 

	
 

	
 
@mock.patch('sys.argv', ['gimmecert', 'testcommand'])
 
def test_main_exits_if_it_calls_function_that_returns_success(tmpdir):
 
def test_main_exits_if_it_calls_function_that_returns_failure(tmpdir):
 
    # This should ensure we don't accidentally create artifacts
 
    # outside of test directory.
 
    tmpdir.chdir()
 

	
 
    @gimmecert.decorators.subcommand_parser
 
    def setup_testcommand_parser(parser, subparsers):
0 comments (0 inline, 0 general)