Skip to content

Commit

Permalink
Merge pull request #243 from BioAnalyticResource/dev
Browse files Browse the repository at this point in the history
Sync
  • Loading branch information
asherpasha authored Oct 2, 2024
2 parents a195141 + 8380019 commit 9d6a957
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/resources/efp_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def get(self, species=""):

# This will only work on the BAR
if os.environ.get("BAR"):
if species in ["arabidopsis", "arachis", "cannabis", "maize", "sorghum", "soybean"]:
if species in ["arabidopsis", "arachis", "cannabis", "maize", "rice", "sorghum", "soybean"]:
efp_base_path = "/var/www/html/efp_" + species + "/data"
else:
return BARUtils.error_exit("Invalid species.")
Expand Down
7 changes: 6 additions & 1 deletion tests/resources/test_llama3.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ def test_get_llama(self):
}
self.assertEqual(response.json, expected)

# Gene does not exist
# Invalid gene id
response = self.app_client.get("/LLaMA/XX3G18850")
expected = {"wasSuccessful": False, "error": "Invalid gene id"}
self.assertEqual(response.json, expected)

# Gene does not exist
response = self.app_client.get("/LLaMA/AT3G18851")
expected = {"wasSuccessful": False, "error": "There are no data found for the given gene"}
self.assertEqual(response.json, expected)

0 comments on commit 9d6a957

Please sign in to comment.