gemini_instruments.gnirs.tests package

Submodules

gemini_instruments.gnirs.tests.test_gnirs module

gemini_instruments.gnirs.tests.test_gnirs.ad(request)[source]

Fixture that will download a file from specified as a test parameter, open it as an AstroData object and return it.

Parameters:request (fixture) – Pytest built-in fixture containing information about the parent test.
Returns:Raw file downloaded from the archive and cached locally.
Return type:AstroData
gemini_instruments.gnirs.tests.test_gnirs.test_can_return_ad_length(ad)[source]
gemini_instruments.gnirs.tests.test_gnirs.test_can_return_instrument(ad)[source]
gemini_instruments.gnirs.tests.test_gnirs.test_descriptor_matches_type(ad, descriptor, expected_type)[source]
gemini_instruments.gnirs.tests.test_gnirs.test_extension_data_shape(ad)[source]
gemini_instruments.gnirs.tests.test_gnirs.test_is_right_instance(ad)[source]
gemini_instruments.gnirs.tests.test_gnirs.test_is_right_type(ad)[source]
gemini_instruments.gnirs.tests.test_gnirs.test_ra_and_dec_always_returns_float(ad, monkeypatch)[source]

Tests that the get the RA/DEC coordinates using descriptors.

Parameters:ad (fixture) – Custom fixture that downloads and opens the input file.
gemini_instruments.gnirs.tests.test_gnirs.test_ra_and_dec_wcs_fallback(ad, monkeypatch)[source]

Tests that the get the RA/DEC coordinates using descriptors when the WCS coordinate mapping fails

Parameters:ad (fixture) – Custom fixture that downloads and opens the input file.
gemini_instruments.gnirs.tests.test_gnirs.test_read_a_keyword_from_hdr(ad)[source]
gemini_instruments.gnirs.tests.test_gnirs.test_slice_range(ad)[source]
gemini_instruments.gnirs.tests.test_gnirs.test_tags(ad, tag)[source]