Skip to content

Commit

Permalink
fix: bad name
Browse files Browse the repository at this point in the history
  • Loading branch information
pgierz committed Nov 11, 2024
1 parent d025479 commit 8c15024
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/fixtures/config_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ def test_config():


@pytest.fixture
def test_config_pi_uxarray():
def pi_uxarray_config():
return TEST_ROOT / "configs" / "test_config_pi_uxarray.yaml"
13 changes: 7 additions & 6 deletions tests/integration/test_uxarray_pi.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# import pytest
import yaml

from pymorize.cmorizer import CMORizer
from pymorize.logging import logger

def test_process(test_uxarray_config, pi_uxarray_data):
from pymorize.cmorizer import CMORizer
from pymorize.logging import logger

logger.info(f"Processing {test_uxarray_config}")
with open(test_uxarray_config, "r") as f:
def test_process(pi_uxarray_config, pi_uxarray_data):
logger.info(f"Processing {pi_uxarray_config}")
with open(pi_uxarray_config, "r") as f:
cfg = yaml.safe_load(f)
for rule in cfg.rules:
for input in rule["inputs"]:
input["path"] = input["path"].replace("REPLACE_ME", pi_uxarray_data)

cmorizer = CMORizer.from_dict(test_uxarray_config)
cmorizer = CMORizer.from_dict(pi_uxarray_config)
cmorizer.process()

0 comments on commit 8c15024

Please sign in to comment.