Skip to content

Commit 0ef0abd

Browse files
Update integration tests
1 parent 6cc824b commit 0ef0abd

File tree

2 files changed

+6
-28
lines changed

2 files changed

+6
-28
lines changed

.github/workflows/push_request_check.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,7 @@ jobs:
4444
4545
- name: check test models
4646
run: |
47-
cd core/esmf-aspect-meta-model-python/tests/integration/java_models/resources
48-
ls
49-
cd valid
50-
ls
51-
cd org.eclipse.esmf.test
47+
cd core/esmf-aspect-meta-model-python/tests/integration/java_models/resources/valid/org.eclipse.esmf.test/1.0.0
5248
ls
5349
5450
- name: run test*s

core/esmf-aspect-meta-model-python/tests/integration/java_models/test_loading_aspects.py

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -155,26 +155,8 @@ def test_loading_aspects():
155155
test_models = get_aspect_test_models()
156156
assert test_models
157157

158-
check_load_aspect_model(test_models)
159-
check_load_model_elements(test_models)
160-
161-
162-
# def test_one_model():
163-
# base_path = (
164-
# "D:\\Projects\\BoschSDK\\git\\bci-oss\\esmf-sdk-py-aspect-model-loader\\core\\"
165-
# "esmf-aspect-meta-model-python\\tests\\integration\\java_models\\resources\\valid\\"
166-
# "org.eclipse.esmf.test.shared\\1.0.0"
167-
# )
168-
# model_name = "EntityWithSimpleTypes.ttl"
169-
#
170-
# samm_graph = SAMMGraph()
171-
# samm_graph.parse(join(base_path, model_name))
172-
#
173-
# with open("D:\\Projects\\BoschSDK\\Tasks\\graph.txt", "w") as f:
174-
# for s, p, o in samm_graph.rdf_graph:
175-
# f.write(f"{s}|{p}|{o}\n")
176-
#
177-
# elements = samm_graph.load_model_elements()
178-
#
179-
# assert elements
180-
# assert samm_graph.model_elements
158+
for model in test_models:
159+
assert exists(model), f"Model {model} does not exist"
160+
161+
# check_load_aspect_model(test_models)
162+
# check_load_model_elements(test_models)

0 commit comments

Comments
 (0)