forked from pool/python-pdm
Update instrumentation-test-case
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=9
This commit is contained in:
parent
e985f6c013
commit
35a5b9dea4
@ -2,12 +2,14 @@ Index: pdm-1.15.3/tests/cli/test_use.py
|
||||
===================================================================
|
||||
--- pdm-1.15.3.orig/tests/cli/test_use.py
|
||||
+++ pdm-1.15.3/tests/cli/test_use.py
|
||||
@@ -14,7 +14,7 @@ def test_use_command(project, invoke):
|
||||
@@ -13,8 +13,8 @@ from pdm.models.caches import JSONFileCa
|
||||
def test_use_command(project, invoke):
|
||||
python = "python" if os.name == "nt" else "python3"
|
||||
python_path = shutil.which(python)
|
||||
result = invoke(["use", "-f", python], obj=project)
|
||||
- result = invoke(["use", "-f", python], obj=project)
|
||||
- assert result.exit_code == 0
|
||||
+ assert result.exit_code == 0, f"Stdout: {result.stdout} Stderr: {result.stderr}"
|
||||
+ result = invoke(["use", "-fv", python], obj=project)
|
||||
+ assert result.exit_code == 0, f"Stderr: {result.stderr}"
|
||||
config_content = project.root.joinpath(".pdm.toml").read_text()
|
||||
assert python_path.replace("\\", "\\\\") in config_content
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user