We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e53c673 commit e171d67Copy full SHA for e171d67
test/integration/project-template/pre_commit_test.py
@@ -20,6 +20,15 @@ def git_path() -> str:
20
21
@pytest.fixture(scope="module")
22
def run_command(poetry_path, git_path, new_project):
23
+ """
24
+ Run subprocess command with captured output and a limited environment (env).
25
+
26
+ We restrict the environment as different systems & tools (i.e. PyCharm) include
27
+ environment variables which may supersede the ones provided here. In such cases,
28
+ this can lead to a breaking alteration in the PTB poetry environment. Thus,
29
+ we provide the minimum information needed to execute the pre-commit command.
30
31
32
def _run_command_fixture(command, **kwargs):
33
defaults = {
34
"capture_output": True,
0 commit comments