Skip to content

Commit 2d80a74

Browse files
committed
Move "features" related test to a sub-package
Signed-off-by: Tobias Wolf <[email protected]>
1 parent 31f23ba commit 2d80a74

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/features/__init__.py

Whitespace-only changes.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pytest
22

33
from gardenlinux.features import Parser
4-
from .constants import GL_ROOT_DIR
4+
from ..constants import GL_ROOT_DIR
55

66

77
@pytest.mark.parametrize(
@@ -58,13 +58,13 @@
5858
),
5959
],
6060
)
61-
def test_get_features_dict(input_cname: str, expected_output: dict):
61+
def test_parser_filter_as_dict(input_cname: str, expected_output: dict):
6262
"""
63-
Tests if get_features_dict returns the dict with expected features.
63+
Tests if parser_filter_as_dict returns the dict with expected features.
6464
6565
If you discover that this test failed, you may want to verify if the included
6666
features have changed since writing this test. In this case, update the expected output accordingly.
67-
You can print the output of get_features_dict so you have the dict in the expected format.
67+
You can print the output of parser_filter_as_dict so you have the dict in the expected format.
6868
"""
6969
features_dict = Parser(GL_ROOT_DIR).filter_as_dict(input_cname)
7070
assert features_dict == expected_output

0 commit comments

Comments
 (0)