Skip to content
Merged

Sync #243

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Loading