Skip to content

Commit

Permalink
Merge pull request #282 from clintonroy/main
Browse files Browse the repository at this point in the history
Find schema files relative to source code, this allows tests to be run
  • Loading branch information
tacaswell authored Jul 13, 2023
2 parents 2cbbf1e + 231658f commit ef8ee4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions event_model/tests/test_schema_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import json
import os

from event_model import SCHEMA_PATH
import event_model
from event_model.documents import (
Datum,
DatumPage,
Expand Down Expand Up @@ -39,7 +39,7 @@
StreamResource,
]

SCHEMA_PATH = "event_model/" + SCHEMA_PATH
SCHEMA_PATH = event_model.__path__[0] + "/schemas/"

@pytest.mark.parametrize("typed_dict_class", typed_dict_class_list)
def test_generated_json_matches_typed_dict(typed_dict_class, tmpdir):
Expand Down

0 comments on commit ef8ee4b

Please sign in to comment.