Skip to content

Commit 84e2497

Browse files
committed
updated tests
1 parent f64ec88 commit 84e2497

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

tests/e2e/notice_publisher_triple_store/test_load_transformed_notice_into_triple_store.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
load_notice_into_triple_store, DEFAULT_NOTICE_REPOSITORY_NAME
33
from tests.fakes.fake_repository import FakeNoticeRepository
44

5-
65
SPARQL_QUERY_TRIPLES = "select * {?s ?p ?o}"
76
SPARQL_QUERY_GRAPH = "SELECT ?g { GRAPH ?g { ?s ?p ?o } }"
87
SPARQL_QUERY_FIXED_URI = "select * { <http://data.europa.eu/a4g/resource/ReviewerOrganisationIdentifier/2018-S-175-396207/de2507f9-ae25-37c8-809c-0109efe10669> ?p ?o .} "
@@ -19,16 +18,12 @@ def test_load_notice_into_triple_store(transformed_complete_notice, allegro_trip
1918

2019
df_query_result = sparql_endpoint.with_query(sparql_query=SPARQL_QUERY_TRIPLES).fetch_tabular()
2120
assert df_query_result is not None
22-
if len(df_query_result) > 0:
23-
assert True
21+
assert len(df_query_result) > 0
2422

2523
df_query_result = sparql_endpoint.with_query(sparql_query=SPARQL_QUERY_GRAPH).fetch_tabular()
2624
assert df_query_result is not None
27-
if len(df_query_result) > 0:
28-
assert True
25+
assert len(df_query_result) > 0
2926

3027
df_query_result = sparql_endpoint.with_query(sparql_query=SPARQL_QUERY_FIXED_URI).fetch_tabular()
3128
assert df_query_result is not None
32-
print(df_query_result)
33-
if len(df_query_result) > 0:
34-
assert True
29+
assert len(df_query_result) > 0

0 commit comments

Comments
 (0)