Skip to content

Commit

Permalink
Add test using EventSource
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Aug 30, 2023
1 parent dd4c03f commit 3c3bba4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ctapipe_io_zfits/tests/test_dl0.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
from ctapipe.io import EventSource


def test_is_compatible(dummy_dl0):
from ctapipe_io_zfits import ProtozfitsDL0EventSource

assert ProtozfitsDL0EventSource.is_compatible(dummy_dl0)


def test_is_valid_eventsource(dummy_dl0):
from ctapipe_io_zfits.dl0 import ProtozfitsDL0EventSource

assert isinstance(EventSource(dummy_dl0), ProtozfitsDL0EventSource)

0 comments on commit 3c3bba4

Please sign in to comment.