Select Git revision
test_ccl_configuration.py

Michał Pogoda authored
test_ccl_configuration.py 540 B
from hydra import initialize, compose
from hydra.utils import instantiate
def test_ccl_configuration():
with initialize(config_path="../../../config", version_base="1.1"):
config = compose(config_name="config", overrides=["paths.root_path=../../../", "configuration=ccl"])
pipeline = instantiate(config.pipeline)
result = pipeline.run("./tests/integration/ccl_configuration/marek_kowalski_pojechal_do_wroclawia.ccl")
assert result == "[OSOBA] [OSOBA] (numer telefonu [DIGITS]) miesza we [MIEJSCE]"