Skip to content

Commit

Permalink
Fix expected error message format
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Jul 13, 2021
1 parent 31ec1a7 commit 8aa0dcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/functional/test_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_show_with_files_not_found(script, data):
assert any(line.startswith('Location: ') for line in lines)
assert 'Requires: ' in lines
assert 'Files:' in lines
assert 'Cannot locate installed-files.txt' in lines
assert 'Cannot locate RECORD or installed-files.txt' in lines


def test_show_with_files_from_wheel(script, data):
Expand All @@ -48,7 +48,7 @@ def test_show_with_files_from_wheel(script, data):
result = script.pip('show', '-f', 'simple.dist')
lines = result.stdout.splitlines()
assert 'Name: simple.dist' in lines
assert 'Cannot locate installed-files.txt' not in lines[6], lines[6]
assert 'Cannot locate RECORD or installed-files.txt' not in lines[6], lines[6]
assert re.search(r"Files:\n( .+\n)+", result.stdout)


Expand All @@ -60,7 +60,7 @@ def test_show_with_all_files(script):
script.pip('install', 'initools==0.2')
result = script.pip('show', '--files', 'initools')
lines = result.stdout.splitlines()
assert 'Cannot locate installed-files.txt' not in lines[6], lines[6]
assert 'Cannot locate RECORD or installed-files.txt' not in lines[6], lines[6]
assert re.search(r"Files:\n( .+\n)+", result.stdout)


Expand Down

0 comments on commit 8aa0dcb

Please sign in to comment.