From d2c3f3313fdbcbdd7197bb4f2c8fe9373c2e0c33 Mon Sep 17 00:00:00 2001 From: jal347 Date: Wed, 27 Mar 2024 16:30:45 -0700 Subject: [PATCH] added metadata source check --- src/tests/data_tests/test_3_web.py | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/src/tests/data_tests/test_3_web.py b/src/tests/data_tests/test_3_web.py index 207b034..6e47b50 100644 --- a/src/tests/data_tests/test_3_web.py +++ b/src/tests/data_tests/test_3_web.py @@ -53,6 +53,43 @@ def test_323_metadata(self): nodebug = self.request("metadata?dev=0").json() assert "software" not in nodebug.keys() + def test_324_metadata(self): + sources = [ + "entrez", + "cpdb", + "pharos", + "homologene", + "clingen", + "pharmgkb", + "ensembl", + "entrez_unigene", + "ensembl_protists", + "uniprot_ipi", + "reagent", + "uniprot_pir", + "ensembl_genomic_pos_mm9", + "ensembl_fungi", + "wikipedia", + "reactome", + "generif", + "ensembl_genomic_pos_hg19", + "ensembl_plant", + "ensembl_metazoa", + "ucsc", + "umls", + "reporter", + "refseq", + "uniprot_pdb", + "pantherdb", + "exac", + "uniprot", + ] + res = self.request("metadata").json() + for source in sources: + assert source in res["src"].keys(), ( + "source %s not found in metadata" % source + ) + def test_331_taxonomy(self): res = self.request("species/1239").json() assert "lineage" in res