5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
29 lines
869 B
Diff
29 lines
869 B
Diff
diff --git a/tests/conftest.py b/tests/conftest.py
|
|
index 762d246..7f86763 100644
|
|
--- a/tests/conftest.py
|
|
+++ b/tests/conftest.py
|
|
@@ -101,21 +101,9 @@ def run_docformatter(arguments, temporary_file):
|
|
|
|
Return subprocess object.
|
|
"""
|
|
- if "DOCFORMATTER_COVERAGE" in os.environ and int(
|
|
- os.environ["DOCFORMATTER_COVERAGE"]
|
|
- ):
|
|
- DOCFORMATTER_COMMAND = [
|
|
- "coverage",
|
|
- "run",
|
|
- "--branch",
|
|
- "--parallel",
|
|
- "--omit=*/site-packages/*",
|
|
- os.environ["VIRTUAL_ENV"] + "/bin/docformatter",
|
|
- ]
|
|
- else:
|
|
- DOCFORMATTER_COMMAND = [
|
|
- os.environ["VIRTUAL_ENV"] + "/bin/docformatter",
|
|
- ] # pragma: no cover
|
|
+ DOCFORMATTER_COMMAND = [
|
|
+ "@docformatter@"
|
|
+ ]
|
|
|
|
if "-" not in arguments:
|
|
arguments.append(temporary_file)
|