Skip to content

Commit 39aece3

Browse files
committed
Try local poetry again but with install afterwards
1 parent 41f33b9 commit 39aece3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/integration/util/dependencies/audit_integration_test.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
import subprocess
3+
from inspect import cleandoc
34

45
import pytest
56

@@ -20,6 +21,22 @@ def create_poetry_project(tmp_path, sample_vulnerability):
2021
],
2122
cwd=poetry_root_dir,
2223
)
24+
25+
poetry_export = cleandoc(
26+
"""
27+
[tool.poetry.requires-plugins]
28+
poetry-plugin-export = ">=1.8"
29+
"""
30+
)
31+
32+
with (poetry_root_dir / "pyproject.toml").open("a") as f:
33+
f.write(poetry_export)
34+
35+
subprocess.run(
36+
["poetry", "install"],
37+
cwd=poetry_root_dir,
38+
)
39+
2340
return poetry_root_dir
2441

2542

0 commit comments

Comments
 (0)