Skip to content

Commit

Permalink
add unit test to be sure that archived submission data graph are removed
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Nov 10, 2024
1 parent c1b5051 commit a680ef1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/models/test_ontology_submission.rb
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ def test_process_submission_archive
old_file_path = old_sub.uploadFilePath
old_sub.process_submission(Logger.new(old_sub.parsing_log_path), {archive: true})
assert old_sub.archived?
r = Goo.sparql_query_client.query("SELECT (count(?s) as ?count) WHERE { GRAPH <#{old_sub.id}> { ?s ?p ?o . }}")
assert_equal 0, r.first[:count].to_i

refute File.file?(File.join(old_sub.data_folder, 'labels.ttl')),
%-File deletion failed for 'labels.ttl'-
Expand Down

0 comments on commit a680ef1

Please sign in to comment.