Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elic-eon committed Jul 25, 2024
1 parent 47689c8 commit 9337970
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/informatica/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
base_url: https://test
user: user
password: password
output: {}
15 changes: 15 additions & 0 deletions tests/informatica/test_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from metaphor.common.base_config import OutputConfig
from metaphor.informatica.config import InformaticaRunConfig


def test_yaml_config(test_root_dir):
config = InformaticaRunConfig.from_yaml_file(
f"{test_root_dir}/informatica/config.yml"
)

assert config == InformaticaRunConfig(
base_url="https://test",
user="user",
password="password",
output=OutputConfig(),
)

0 comments on commit 9337970

Please sign in to comment.