mirror of
https://github.com/jlengrand/bugsink.git
synced 2026-03-10 08:01:17 +00:00
Pin sample to test
on github.com the glob evaluated such that the sample could not be modified according to the test-setup
This commit is contained in:
@@ -338,7 +338,7 @@ class IngestViewTestCase(TransactionTestCase):
|
||||
|
||||
SAMPLES_DIR = os.getenv("SAMPLES_DIR", "../event-samples")
|
||||
|
||||
event_samples = glob(SAMPLES_DIR + "/*/*.json")
|
||||
event_samples = glob(SAMPLES_DIR + "/sentry/mobile1-xen.json") # this one has 'exception.values[0].type'
|
||||
|
||||
if len(event_samples) == 0:
|
||||
raise Exception(f"No event samples found in {SAMPLES_DIR}; I insist on having some to test with.")
|
||||
|
||||
Reference in New Issue
Block a user