Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius authored and oz123 committed Sep 13, 2024
1 parent 5b8d3f2 commit 94a0ed8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/integration/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,8 @@ def test_pipenv_graph_reverse(pipenv_instance_private_pypi):
openpyxl_dep = re.search(r'^openpyxl',
output,
flags=re.MULTILINE | re.IGNORECASE)
assert openpyxl_dep is None, f'openpyxl should not appear at beginning of lines in {output}'

if sys.version_info[:2] == (3, 12):
assert 'openpyxl==2.5.4 [requires: et_xmlfile]' in output
else:
assert 'openpyxl==2.5.4 [requires: et-xmlfile]' in output
assert openpyxl_dep is None, f'openpyxl should not appear at beginning of lines in {output}'s
assert 'openpyxl==2.5.4 [requires: et_xmlfile]' in output
else:
dep_match = re.search(fr'^[ -]*{dep_name}==[\d.]+$',
output,
Expand Down

0 comments on commit 94a0ed8

Please sign in to comment.