Skip to content

Commit

Permalink
Simplify fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
disrupted committed Jul 23, 2024
1 parent fbb9139 commit b434d78
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/components/test_base_defaults_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
BaseDefaultsComponent,
get_defaults_file_paths,
)
from kpops.config import KpopsConfig, set_config
from kpops.config import KpopsConfig
from kpops.const.file_type import DEFAULTS_YAML, PIPELINE_YAML, KpopsFileType
from kpops.utils.environment import ENV, PIPELINE_PATH
from tests.components import PIPELINE_BASE_DIR, RESOURCES_PATH
Expand Down Expand Up @@ -44,10 +44,8 @@ class EnvVarTest(BaseDefaultsComponent):


@pytest.fixture(autouse=True)
def config() -> None:
def env() -> None:
ENV[PIPELINE_PATH] = str(RESOURCES_PATH / "pipeline.yaml")
config = KpopsConfig(pipeline_base_dir=PIPELINE_BASE_DIR)
set_config(config)


class TestBaseDefaultsComponent:
Expand Down

0 comments on commit b434d78

Please sign in to comment.