Skip to content

Commit

Permalink
Fixes to unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccully committed Aug 16, 2024
1 parent 5c679ba commit 38da0e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Test Super Flat Creation
run: |
kubectl exec banzai-e2e-test -c banzai-listener -- pytest-s --pyargs banzai --durations=0 --junitxml=/archive/engineering/pytest-master-flat.xml -m master_flat
kubectl exec banzai-e2e-test -c banzai-listener -- pytest -s --pyargs banzai --durations=0 --junitxml=/archive/engineering/pytest-master-flat.xml -m master_flat
- name: Test Science Frame Creation
run: |
Expand Down
5 changes: 4 additions & 1 deletion banzai/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ def __init__(self, hdu_list=None, file_path='/tmp/test_image.fits', instrument=N
self._file_path = file_path
self.is_bad = False
self.hdu_order = ['SCI', 'CAT', 'BPM', 'ERR']
self.n_sub_exposures = 1

@property
def n_sub_exposures(self):
return 1
for keyword in kwargs:
setattr(self, keyword, kwargs[keyword])

Expand Down

0 comments on commit 38da0e0

Please sign in to comment.