Skip to content

Commit a183f16

Browse files
ialarmedalienvladistan
authored andcommitted
path debugging
1 parent 3477a20 commit a183f16

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_loaders_dumpers/test_loaders_pydantic.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
def test_loader_base_model(filename, model, format):
2626
loader = LOADER[format]
2727
expected_yaml = env.expected_path("load", f"{filename}_{format}.yaml")
28+
exp_yaml_path = Path(expected_yaml)
29+
exp_path = Path(env.outdir) / "load" / f"{filename}_{format}.yaml"
30+
assert exp_path.as_posix() == exp_yaml_path.as_posix()
31+
assert exp_path.exists()
32+
assert exp_yaml_path.exists()
33+
2834
metadata = FileInfo()
2935

3036
python_obj: BaseModel = loader.load(f"{filename}.{format}", model, metadata=metadata, base_dir=env.indir)

0 commit comments

Comments
 (0)