Skip to content

Commit e08631c

Browse files
committed
switch from print to logging for test messages
1 parent 4d08010 commit e08631c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/integration/profiles/five-safes-crate/test_5src_funding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def funding_project_no_name(graph):
3434
target_object = None
3535

3636
for s, p, o in graph.triples((target_subject, target_predicate, target_object)):
37-
print(f"Removing: {s}, {p}, {o}")
37+
logger.debug(f"Removing: {s}, {p}, {o}")
3838

3939
graph.remove((target_subject, target_predicate, target_object))
4040

tests/integration/profiles/five-safes-crate/test_5src_root_data_entity_metadata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def remove_source_org(graph):
3434
target_object = None
3535

3636
for s, p, o in graph.triples((target_subject, target_predicate, target_object)):
37-
print(f"Removing: {s}, {p}, {o}")
37+
logger.debug(f"Removing: {s}, {p}, {o}")
3838

3939
graph.remove((target_subject, target_predicate, target_object))
4040

@@ -66,7 +66,7 @@ def replace_source_org(graph):
6666
new_object = rdflib.Literal('Investigation of cancer (TRE72 project 81)')
6767

6868
for s, p, o in graph.triples((target_subject, target_predicate, original_object)):
69-
print(f"Replacing: {s}, {p}, {o}")
69+
logger.debug(f"Replacing: {s}, {p}, {o}")
7070

7171
graph.remove((target_subject, target_predicate, original_object))
7272
graph.add((target_subject, target_predicate, new_object))

0 commit comments

Comments
 (0)