Skip to content

Commit 6206c94

Browse files
committed
regex with _ or - for et_xml'
1 parent e8d7a96 commit 6206c94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ def test_pipenv_graph_reverse(pipenv_instance_private_pypi):
142142
assert (
143143
openpyxl_dep is None
144144
), f"openpyxl should not appear at beginning of lines in {output}"
145-
assert "openpyxl==2.5.4 [requires: et-xmlfile]" in [i.strip() for i in (output.split("└──"))]
146-
#assert re.search(r"openpyxl==2\.5\.4\s*\[requires:\s*et-xmlfile\]", output, flags=re.MULTILINE | re.IGNORECASE)
145+
#assert "openpyxl==2.5.4 [requires: et_xmlfile]" in [i.strip() for i in (output.split("└──"))]
146+
assert re.search(r"openpyxl==2\.5\.4\s*\[requires:\s*et[-_]xmlfile\]", output, flags=re.MULTILINE | re.IGNORECASE)
147147
else:
148148
dep_match = re.search(
149149
rf"^[ -]*{dep_name}==[\d.]+$",

0 commit comments

Comments
 (0)