Add bounded GPU-priority automatic model testing and profile export
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ class Tests(unittest.TestCase):
|
||||
|
||||
def test_chat_test_routes_are_admin_only(self):
|
||||
self.assertIsNone(self.request('chat-tests')['job'])
|
||||
for path,method,body in [('chat-tests','GET',None),('chat-tests/start','POST',b'{}')]:
|
||||
for path,method,body in [('chat-tests','GET',None),('chat-tests/start','POST',b'{}'),('auto-tests','GET',None),('auto-tests/start','POST',b'{}'),('auto-tests/save','POST',b'{}')]:
|
||||
req=urllib.request.Request(self.url+'/api/v1/'+path,method=method,data=body,headers={'Authorization':'Bearer '+self.api_token,'X-Athena-Deck':'1','Content-Type':'application/json'})
|
||||
with self.assertRaises(urllib.error.HTTPError) as exc:urllib.request.urlopen(req)
|
||||
self.assertEqual(exc.exception.code,401);exc.exception.close()
|
||||
|
||||
Reference in New Issue
Block a user