Skip to content

Commit

Permalink
update tests YAMLS_DIR variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitor authored and nitaibezerra committed Apr 19, 2023
1 parent 0fc2bc5 commit d7f0047
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def dag_gen() -> DouDigestDagGenerator:

@pytest.fixture()
def yaml_parser()-> YAMLParser:
filepath = os.path.join(DouDigestDagGenerator().YAMLS_DIR,
filepath = os.path.join(DouDigestDagGenerator().YAMLS_START_DIR,
'basic_example.yaml')
return YAMLParser(filepath=filepath)

Expand Down
2 changes: 1 addition & 1 deletion tests/parsers_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def test_hash_dag_id(yaml_parser, dag_id, size, hashed):
),
])
def test_parse(filepath, result_tuple):
filepath = os.path.join(DouDigestDagGenerator().YAMLS_DIR, filepath)
filepath = os.path.join(DouDigestDagGenerator().YAMLS_START_DIR, filepath)
parsed = YAMLParser(filepath=filepath).parse()

assert parsed == DAGConfig(**result_tuple)

0 comments on commit d7f0047

Please sign in to comment.