Skip to content

Commit

Permalink
✅ Rename test helpers to avoid pytest warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Krupinski committed Feb 9, 2024
1 parent 5a825a1 commit 0e7b073
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/test_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
from tests.compare import cmp_dirs


class TestData(NamedTuple):
class E2eTestData(NamedTuple):
test_name: str
data: Mapping[str, Any]
error: Optional[bool] = False


jinja_test_data: Iterable[TestData] = [
TestData(
e2e_test_data: Iterable[E2eTestData] = [
E2eTestData(
'simple',
dict(
tmpl_dir='target_dir',
Expand All @@ -34,7 +34,7 @@ class TestData(NamedTuple):
empty_file_name='',
),
),
TestData(
E2eTestData(
'loop',
dict(
animals={
Expand All @@ -44,7 +44,7 @@ class TestData(NamedTuple):
}
),
),
TestData(
E2eTestData(
'loop_nested',
dict(
animals=dict(
Expand All @@ -59,12 +59,12 @@ class TestData(NamedTuple):
)
),
),
TestData(
E2eTestData(
'loop_nested',
{},
error=True,
),
TestData(
E2eTestData(
'missing_file',
{},
error=True,
Expand All @@ -82,7 +82,7 @@ class TestData(NamedTuple):
}

adapter_test_data = [
(*adapter, *param_set, exclusions[adapter[0]]) for adapter, param_set in product(adapters.items(), jinja_test_data)
(*adapter, *param_set, exclusions[adapter[0]]) for adapter, param_set in product(adapters.items(), e2e_test_data)
]


Expand Down

0 comments on commit 0e7b073

Please sign in to comment.