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
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