@@ -7,29 +7,29 @@ class TestIntegrations(TestCase):
77 def setUp (self ):
88 self .app_client = app .test_client ()
99
10- def test_get_atted_api4 (self ):
10+ def test_get_atted_api5 (self ):
1111 """This tests the data returned by the Atted proxy
1212 :return:
1313 """
1414 # Valid data
15- response = self .app_client .get ("/proxy/atted_api4 /At1g01010/5" )
15+ response = self .app_client .get ("/proxy/atted_api5 /At1g01010/5" )
1616 # Note: pytest is running from project root. So path is relative to project root
17- with open ("tests/data/get_atted_api4 .json" ) as json_file :
17+ with open ("tests/data/get_atted_api5 .json" ) as json_file :
1818 expected = load (json_file )
1919 self .assertEqual (response .json , expected )
2020
2121 # Invalid gene
22- response = self .app_client .get ("/proxy/atted_api4 /At1g0101x/5" )
22+ response = self .app_client .get ("/proxy/atted_api5 /At1g0101x/5" )
2323 expected = {"wasSuccessful" : False , "error" : "Invalid gene id" }
2424 self .assertEqual (response .json , expected )
2525
2626 # If no data, the service should return this response
27- response = self .app_client .get ("/proxy/atted_api4 /At1g01011/5" )
27+ response = self .app_client .get ("/proxy/atted_api5 /At1g01011/5" )
2828
2929 expected = {"error" : "No gene ID specified." , "status_code" : 400 }
3030 self .assertEqual (response .json , expected )
3131
3232 # Invalid topN count
33- response = self .app_client .get ("proxy/atted_api4 /At1g01010/9999999999999999999" )
33+ response = self .app_client .get ("proxy/atted_api5 /At1g01010/9999999999999999999" )
3434 expected = {"wasSuccessful" : False , "error" : "Invalid count" }
3535 self .assertEqual (response .json , expected )
0 commit comments