@@ -593,7 +593,7 @@ def types(self):
593593
594594def test_extension_override (tmpdir ):
595595
596- gwcs = pytest .importorskip ('gwcs' , '0.9 .0' )
596+ gwcs = pytest .importorskip ('gwcs' , '0.12 .0' )
597597
598598 from asdf .extension import default_extensions
599599 default_extensions .reset ()
@@ -603,19 +603,19 @@ def test_extension_override(tmpdir):
603603
604604 with asdf .AsdfFile () as aa :
605605 wti = aa .type_index ._write_type_indices [version ]
606- assert wti .from_custom_type (gwcs .WCS ) is gwcs .tags .WCSType
606+ assert wti .from_custom_type (gwcs .WCS ) is gwcs .tags .wcs . WCSType
607607 aa .tree ['wcs' ] = gwcs .WCS (output_frame = 'icrs' )
608608 aa .write_to (tmpfile )
609609
610610 with open (tmpfile , 'rb' ) as ff :
611611 contents = str (ff .read ())
612- assert gwcs .tags .WCSType .yaml_tag in contents
612+ assert gwcs .tags .wcs . WCSType .yaml_tag in contents
613613
614614
615615def test_extension_override_subclass (tmpdir ):
616616
617- gwcs = pytest .importorskip ('gwcs' , '0.9 .0' )
618- astropy = pytest .importorskip ('astropy' , '3 .0.0' )
617+ gwcs = pytest .importorskip ('gwcs' , '0.12 .0' )
618+ astropy = pytest .importorskip ('astropy' , '4 .0.0' )
619619 from astropy .modeling import models
620620
621621 from asdf .extension import default_extensions
@@ -629,16 +629,16 @@ class SubclassWCS(gwcs.WCS):
629629
630630 with asdf .AsdfFile () as aa :
631631 wti = aa .type_index ._write_type_indices [version ]
632- assert wti .from_custom_type (gwcs .WCS ) is gwcs .tags .WCSType
633- assert wti .from_custom_type (SubclassWCS ) is gwcs .tags .WCSType
632+ assert wti .from_custom_type (gwcs .WCS ) is gwcs .tags .wcs . WCSType
633+ assert wti .from_custom_type (SubclassWCS ) is gwcs .tags .wcs . WCSType
634634 # The duplication here is deliberate: make sure that nothing has changed
635- assert wti .from_custom_type (gwcs .WCS ) is gwcs .tags .WCSType
635+ assert wti .from_custom_type (gwcs .WCS ) is gwcs .tags .wcs . WCSType
636636 aa .tree ['wcs' ] = SubclassWCS (output_frame = 'icrs' )
637637 aa .write_to (tmpfile )
638638
639639 with open (tmpfile , 'rb' ) as ff :
640640 contents = str (ff .read ())
641- assert gwcs .tags .WCSType .yaml_tag in contents
641+ assert gwcs .tags .wcs . WCSType .yaml_tag in contents
642642
643643
644644def test_tag_without_schema (tmpdir ):
0 commit comments