You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.3 KiB
46 lines
1.3 KiB
From 22ffb4812c17b57afba82e001326ff54c8de58d1 Mon Sep 17 00:00:00 2001
|
|
From: Fabian Affolter <mail@fabian-affolter.ch>
|
|
Date: Sun, 7 Apr 2024 20:40:56 +0200
|
|
Subject: [PATCH] Remoce seeddir
|
|
|
|
---
|
|
tests/helpers.py | 17 -----------------
|
|
1 file changed, 17 deletions(-)
|
|
|
|
diff --git a/tests/helpers.py b/tests/helpers.py
|
|
index 533fe1e..a779102 100644
|
|
--- a/tests/helpers.py
|
|
+++ b/tests/helpers.py
|
|
@@ -14,7 +14,6 @@
|
|
from _pytest._code import ExceptionInfo
|
|
from _pytest.capture import CaptureFixture
|
|
from _pytest.config import main as pytest_main
|
|
-from seedir import seedir
|
|
from testfixtures import compare
|
|
|
|
from sybil import Sybil
|
|
@@ -114,22 +113,6 @@ def check_text(text: str, sybil: Sybil):
|
|
return document
|
|
|
|
|
|
-def check_tree(expected: str, path: str):
|
|
- raw = seedir(
|
|
- DOCS / path,
|
|
- printout=False,
|
|
- first='folders',
|
|
- sort=True,
|
|
- regex=True,
|
|
- exclude_folders=r'\..+|__pycache__'
|
|
- )
|
|
- actual = '\n'+raw.split('\n', 1)[1]
|
|
- text = compare(expected=expected.strip(), actual=actual.strip(), raises=False)
|
|
- if text: # pragma: no cover
|
|
- text += '\n\nShould be:\n'+actual
|
|
- raise AssertionError(text)
|
|
-
|
|
-
|
|
FUNCTIONAL_TEST_DIR = join(dirname(__file__), 'functional')
|
|
PYTEST = 'pytest'
|
|
UNITTEST = 'unittest'
|
|
|