Exemple #1
0
 async def test_source_not_found(self):
     for method in ["train", "accuracy"]:
         with self.subTest(method=method):
             with self.assertRaisesRegex(
                     ServerException,
                     list(SOURCE_NOT_LOADED.values())[0]):
                 async with self.post(f"/model/{self.mlabel}/train",
                                      json=["non-existant"]):
                     pass  # pramga: no cov
Exemple #2
0
 async def test_source_not_found(self):
     with self.assertRaisesRegex(ServerException,
                                 list(SOURCE_NOT_LOADED.values())[0]):
         async with self.get("/source/non-existant/record/key"):
             pass  # pramga: no cov