File tree Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change 1
- import contextlib
2
1
import os
3
2
import subprocess
4
3
import sys
@@ -39,21 +38,15 @@ def cli(pytest_args):
39
38
40
39
click .secho (f"Running pytest with APP_ENV={ os .environ ['APP_ENV' ]} " , bold = True )
41
40
42
- # Won't want to start services automatically in some cases...
43
- # may need a better check for this but CI is the primary auto-exclusion
44
- services = (
45
- Services () if "CI" not in os .environ and Services else contextlib .nullcontext ()
41
+ result = subprocess .run (
42
+ [
43
+ "pytest" ,
44
+ * pytest_args ,
45
+ ],
46
+ env = {
47
+ ** os .environ ,
48
+ },
46
49
)
47
- with services :
48
- result = subprocess .run (
49
- [
50
- "pytest" ,
51
- * pytest_args ,
52
- ],
53
- env = {
54
- ** os .environ ,
55
- },
56
- )
57
50
58
51
if result .returncode :
59
52
# Can be invoked by pre-commit, so only exit if it fails
You can’t perform that action at this time.
0 commit comments