def test_showrecipes_on_gmos_ns(test_path): file_location = os.path.join(test_path, 'Gempy', GMOS_NS) answer = showrecipes(file_location) for i in range(len(gmos_ns_answer)): assert gmos_ns_answer[i] in answer
def test_showrecipes_on_f2(test_path): file_location = os.path.join(test_path, 'Gempy', F2) answer = showrecipes(file_location) for i in range(len(f2_answer)): assert f2_answer[i] in answer
def test_showrecipes_on_gnirs_spect(test_path): file_location = os.path.join(test_path, 'Gempy', GNIRS_SPECT) answer = showrecipes(file_location) for i in range(len(gnirs_spect_answer)): assert gnirs_spect_answer[i] in answer
def test_showrecipes_on_gsaoi_flat(test_path): file_location = os.path.join(test_path, 'Gempy/', GSAOI_FLAT) answer = showrecipes(file_location) for i in range(len(gsaoi_flat_answer)): assert gsaoi_flat_answer[i] in answer
def test_showrecipes_on_niri(test_path): file_location = os.path.join(test_path, 'Gempy/', NIRI) answer = showrecipes(file_location) for i in range(len(niri_answer)): assert niri_answer[i] in answer
def test_showrecipes_on_gsaoi_image(test_path): file_location = os.path.join(test_path, 'Gempy', GSAOI_IMAGE) answer = showrecipes(file_location) for i in range(len(gsaoi_image_answer)): assert gsaoi_image_answer[i] in answer
def test_showrecipes_on_gnirs_spect(): file_location = download_from_archive(GNIRS_SPECT) gnirs_spect_answer = [ "Input file: {}".format(file_location), "Input tags: ", "!!! No recipes were found for this file !!!" ] answer = showrecipes(file_location) for i in range(len(gnirs_spect_answer)): assert gnirs_spect_answer[i] in answer
def test_showrecipes_on_gmos_ns(): file_location = download_from_archive(GMOS_NS) gmos_ns_answer = [ "Input file: {}".format(file_location), "Input tags: ", "Recipes available for the input file: ", " geminidr.gmos.recipes.qa.recipes_NS::reduce" ] answer = showrecipes(file_location) for i in range(len(gmos_ns_answer)): assert gmos_ns_answer[i] in answer
def test_showrecipes_on_gsaoi_dark(): file_location = download_from_archive(GSAOI_DARK) gsaoi_dark_answer = [ "Input file: {}".format(file_location), "Input tags: ", "Recipes available for the input file: ", " geminidr.gsaoi.recipes.sq.recipes_DARK::makeProcessedDark" ] answer = showrecipes(file_location) for i in range(len(gsaoi_dark_answer)): assert gsaoi_dark_answer[i] in answer
def test_showrecipes_on_gsaoi_image(): file_location = download_from_archive(GSAOI_IMAGE) gsaoi_image_answer = [ "Input file: {}".format(file_location), "Input tags: ", "Recipes available for the input file: ", " geminidr.gsaoi.recipes.sq.recipes_IMAGE::reduce_nostack", " geminidr.gsaoi.recipes.qa.recipes_IMAGE::reduce_nostack"] answer = showrecipes(file_location) for i in range(len(gsaoi_image_answer)): assert gsaoi_image_answer[i] in answer
def test_showrecipes_on_gsaoi_flat(): file_location = download_from_archive(GSAOI_FLAT) gsaoi_flat_answer = [ "Input file: {}".format(file_location), "Input tags: ", "Recipes available for the input file: ", " geminidr.gsaoi.recipes.sq.recipes_FLAT_IMAGE::makeProcessedBPM", " geminidr.gsaoi.recipes.sq.recipes_FLAT_IMAGE::makeProcessedFlat", " geminidr.gsaoi.recipes.qa.recipes_FLAT_IMAGE::makeProcessedFlat" ] answer = showrecipes(file_location) for i in range(len(gsaoi_flat_answer)): assert gsaoi_flat_answer[i] in answer
def test_showrecipes_on_gnirs(): file_location = download_from_archive(GNIRS) expected_answers = [ "Input file: {}".format(file_location), "Input tags: ", "Recipes available for the input file: ", " geminidr.gsaoi.recipes.sq.recipes_FLAT_IMAGE::makeProcessedBPM", " geminidr.gsaoi.recipes.sq.recipes_FLAT_IMAGE::makeProcessedFlat", " geminidr.gsaoi.recipes.qa.recipes_FLAT_IMAGE::makeProcessedFlat" ] answer = showrecipes(file_location) for i in range(len(expected_answers)): assert expected_answers[i] in answer
def test_showrecipes_on_f2(): file_location = download_from_archive(F2) f2_answer = [ "Input file: {}".format(file_location), "Input tags: ", "Recipes available for the input file: ", " geminidr.f2.recipes.sq.recipes_IMAGE::makeSkyFlat", " geminidr.f2.recipes.sq.recipes_IMAGE::reduce", " geminidr.f2.recipes.qa.recipes_IMAGE::reduce", " geminidr.f2.recipes.qa.recipes_IMAGE::reduce_nostack" ] answer = showrecipes(file_location) for i in range(len(f2_answer)): assert f2_answer[i] in answer
def test_showrecipes_on_niri(): file_location = download_from_archive(NIRI) niri_answer = [ "Input file: {}".format(file_location), "Input tags: ", "Recipes available for the input file: ", " geminidr.niri.recipes.sq.recipes_IMAGE::makeSkyFlat", " geminidr.niri.recipes.sq.recipes_IMAGE::reduce", " geminidr.niri.recipes.qa.recipes_IMAGE::makeSkyFlat", " geminidr.niri.recipes.qa.recipes_IMAGE::reduce" ] answer = showrecipes(file_location) for i in range(len(niri_answer)): assert niri_answer[i] in answer
def test_showrecipes_on_gmos(): file_location = download_from_archive(GMOS) gmos_answer = [ "Input file: {}".format(file_location), "Input tags: ", "Recipes available for the input file: ", " geminidr.gmos.recipes.sq.recipes_IMAGE::makeProcessedFringe", " geminidr.gmos.recipes.sq.recipes_IMAGE::reduce", " geminidr.gmos.recipes.qa.recipes_IMAGE::makeProcessedFringe", " geminidr.gmos.recipes.qa.recipes_IMAGE::reduce", " geminidr.gmos.recipes.qa.recipes_IMAGE::reduce_nostack", " geminidr.gmos.recipes.qa.recipes_IMAGE::stack" ] answer = showrecipes(file_location) for i in range(len(gmos_answer)): assert gmos_answer[i] in answer
def test_showrecipes_on_gnirs(): file_location = download_from_archive(GNIRS) expected_answers = [ "Input file: {}".format(file_location), "Input tags: ", "Recipes available for the input file:", "geminidr.gnirs.recipes.sq.recipes_IMAGE::alignAndStack", "geminidr.gnirs.recipes.sq.recipes_IMAGE::reduce", "geminidr.gnirs.recipes.qa.recipes_IMAGE::reduce", "geminidr.gnirs.recipes.sq.recipes_IMAGE::alignAndStack", "geminidr.gnirs.recipes.sq.recipes_IMAGE::reduce", ] answer = showrecipes(file_location) for i in range(len(expected_answers)): assert expected_answers[i] in answer