Skip to content

Commit

Permalink
prefix test model class with _
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Nov 20, 2024
1 parent a6b4a90 commit 6b7fad7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stdatamodels/jwst/datamodels/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,15 @@ def test_imagemodel():


def test_model_with_nonstandard_primary_array():
class NonstandardPrimaryArrayModel(JwstDataModel):
class _NonstandardPrimaryArrayModel(JwstDataModel):
schema_url = os.path.join(ROOT_DIR, "nonstandard_primary_array.schema.yaml")

# The wavelength array is the primary array.
# Try commenting this function out and the problem goes away.
def get_primary_array_name(self):
return 'wavelength'

m = NonstandardPrimaryArrayModel((10,))
m = _NonstandardPrimaryArrayModel((10,))
assert 'wavelength' in list(m.keys())
assert m.wavelength.sum() == 0

Expand Down

0 comments on commit 6b7fad7

Please sign in to comment.