Skip to content

Commit

Permalink
add checks to destroy test #469
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldcampbelljr committed Mar 14, 2024
1 parent 2952f1a commit bd17553
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_comprehensive.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os.path

import pytest
from peppy.const import *
from yaml import dump
Expand All @@ -10,6 +12,7 @@
from tests.smoketests.test_run import is_connected
from tempfile import TemporaryDirectory
from pipestat import PipestatManager
from pipestat.exceptions import RecordNotFoundError

from yaml import dump, safe_load

Expand Down Expand Up @@ -137,3 +140,9 @@ def test_comprehensive_looper_pipestat(prep_temp_pep_pipestat):
result = main(test_args=x)
except Exception:
raise pytest.fail("DID RAISE {0}".format(Exception))

sd = os.path.dirname(path_to_looper_config)
tsv_list = [os.path.join(sd, f) for f in os.listdir(sd) if f.endswith(".tsv")]
assert len(tsv_list) == 0
with pytest.raises(RecordNotFoundError):
retrieved_result = psm.retrieve_one(record_identifier="frog_2")

0 comments on commit bd17553

Please sign in to comment.