Skip to content

Commit c5320c1

Browse files
committed
Make test runable from any directory
1 parent 4f5cefc commit c5320c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_yaml.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ def test_validate():
1717
validate(data)
1818

1919
# should be well-formed
20-
file_ = "doc/example/example_Fujita/Fujita.yaml"
20+
file_ = Path(__file__).parents[1] / "doc" / "example" / "example_Fujita"\
21+
/ "Fujita.yaml"
2122
validate(file_)
2223

2324

0 commit comments

Comments
 (0)