Skip to content

Commit ab76ffa

Browse files
committed
Add tests for nox tasks that affect starting off a project
1 parent 3326baa commit ab76ffa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
3+
class TestSpecificNoxTasks:
4+
@staticmethod
5+
def _command(poetry_path: str, task: str) -> list[str]:
6+
return [poetry_path, "run", "--", "nox", "-s", task]
7+
8+
def test_lint_code(self, poetry_path, run_command):
9+
command = self._command(poetry_path, "lint:code")
10+
output = run_command(command, check=False)
11+
assert output.returncode == 0

0 commit comments

Comments
 (0)