Skip to content

Commit

Permalink
Expand tests
Browse files Browse the repository at this point in the history
Co-authored-by: Derek Homeier <[email protected]>
  • Loading branch information
astrofrog and dhomeier authored Apr 11, 2024
1 parent 58272c1 commit c7801cc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions glue/core/tests/test_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,22 @@ def test_astropy_units():
assert unit2 is unit


@requires_astropy
def test_astropy_compound_units():
import astropy.units as u
unit = u.m / u.s
unit2 = clone(unit)
assert unit2 == unit

unit = u.W / u.m**2 / u.nm
unit2 = clone(unit)
assert unit2 == unit

unit = u.km
unit2 = clone(unit)
assert unit2 is unit


@requires_astropy
def test_astropy_compound_units():
import astropy.units as u
Expand Down

0 comments on commit c7801cc

Please sign in to comment.