Skip to content

Commit a122405

Browse files
committed
Test clean up
1 parent a4560dc commit a122405

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

test/integration/project-template/poetry_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
def test_poetry_check_passes(new_project):
55
"""
6-
Failure indicates that the `pyproject.toml` is not compatible with the poetry
7-
version. This checks only known poetry attributes, so there could be keys, like
8-
`project-abc = 127` that are present but since they do not have a meaning
9-
for poetry, they are ignored.
6+
If this tests fails, this indicates that the `pyproject.toml` is not compatible
7+
with the PTB's default poetry version. Note, that this checks only known poetry
8+
attributes, so there could be keys, like `project-abc = 127`, that are present, but,
9+
as they do not have a meaning for poetry, they are ignored.
1010
"""
1111
output = subprocess.run(["poetry", "check"], cwd=new_project,
1212
capture_output=True, text=True)

test/integration/project-template/pre_commit_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
import pytest
55

66

7-
# def run_with_check(command_list: list[str], cwd: Path):
8-
9-
107
@pytest.fixture(scope="module")
118
def poetry_path() -> str:
129
result = subprocess.run(["which", "poetry"], capture_output=True, text=True)
1310
poetry_path = result.stdout.strip()
1411
return poetry_path
1512

13+
1614
@pytest.fixture(scope="module")
1715
def git_path() -> str:
1816
result = subprocess.run(["which", "git"], capture_output=True, text=True)

0 commit comments

Comments
 (0)