Skip to content

Commit

Permalink
refactor!: move raillabel schema
Browse files Browse the repository at this point in the history
  • Loading branch information
tklockau committed Oct 20, 2023
1 parent 2133dc0 commit 83b273b
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions raillabel_providerkit/format/understand_ai/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ def to_raillabel(self) -> dict:

def _get_subschema_version(self) -> str:
RAILLABEL_SCHEMA_PATH = (
Path(__file__).parent.parent.parent
/ "validation"
/ "validate_schema"
/ "raillabel_schema.json"
Path(__file__).parent.parent.parent / "format" / "raillabel_schema.json"
)

with RAILLABEL_SCHEMA_PATH.open() as schema_file:
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

json_data_directories = [
Path(__file__).parent / "__test_assets__",
Path(__file__).parent.parent / "raillabel_providerkit" / "validation" / "validate_schema"
Path(__file__).parent.parent / "raillabel_providerkit" / "format"
]

@pytest.fixture
Expand Down

0 comments on commit 83b273b

Please sign in to comment.