Skip to content

Commit

Permalink
added metadata source check
Browse files Browse the repository at this point in the history
  • Loading branch information
jal347 committed Mar 27, 2024
1 parent f7b4236 commit d2c3f33
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/tests/data_tests/test_3_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d2c3f33

Please sign in to comment.