Skip to content

Commit daa68dc

Browse files
committed
fix: fix test code
Signed-off-by: Frost Ming <me@frostming.com>
1 parent d6c5d30 commit daa68dc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_packer.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import pytest
1010
from pdm.utils import cd, is_editable
11-
1211
from pdm_packer.env import PackEnvironment
1312

1413

@@ -28,7 +27,7 @@ def example_project(invoke, main):
2827
"name": "test_app",
2928
"version": "0.1.0",
3029
"requires-python": ">=3.7",
31-
"dependencies": ["requests==2.24.0"],
30+
"dependencies": ["requests==2.31.0"],
3231
},
3332
"build-system": {
3433
"requires": ["pdm-backend"],
@@ -70,7 +69,7 @@ def test_create_normal_pyz(example_project, invoke, tmp_path):
7069
namelist = zf.namelist()
7170
assert "requests/__init__.py" in namelist
7271
assert "urllib3/__init__.py" in namelist
73-
assert "requests-2.24.0.dist-info/METADATA" in namelist
72+
assert "requests-2.31.0.dist-info/METADATA" in namelist
7473
assert "app.py" in namelist
7574
assert not any(name.endswith(".pyc") for name in namelist)
7675

0 commit comments

Comments
 (0)