depot/third_party/nixpkgs/pkgs/development/python-modules/docformatter/test-path.patch
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

29 lines
871 B
Diff

diff --git a/tests/conftest.py b/tests/conftest.py
index 5f5a9aa..3289222 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -92,21 +92,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)