Fixed issue in test_freeze for failing test

This commit is contained in:
Devesh Kumar Singh 2020-04-06 01:23:21 +05:30
parent 29b4ec79ed
commit 84baf2110f
1 changed files with 4 additions and 7 deletions

View File

@ -832,8 +832,8 @@ def test_freeze_skip_work_dir_pkg(script):
expect_stderr=True, cwd=pkg_path)
# Freeze should not include package simple when run from package directory
result = script.pip('freeze', 'simple', cwd=pkg_path)
_check_output(result.stdout, '')
result = script.pip('freeze', cwd=pkg_path)
assert 'simple==1.0' not in result.stdout
def test_freeze_include_work_dir_pkg(script):
@ -852,8 +852,5 @@ def test_freeze_include_work_dir_pkg(script):
script.environ.update({'PYTHONPATH': pkg_path})
# Freeze should include package simple when run from package directory
result = script.pip('freeze', 'simple', cwd=pkg_path)
expected = textwrap.dedent("""\
simple==1.0
<BLANKLINE>""")
_check_output(result.stdout, expected)
result = script.pip('freeze', cwd=pkg_path)
assert 'simple==1.0' in result.stdout