Add bounded GPU-priority automatic model testing and profile export

This commit is contained in:
Mikei386
2026-09-28 21:29:48 +02:00
parent f99cd26b1d
commit a77266c7bd
12 changed files with 187 additions and 10 deletions
+1 -1
View File
@@ -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()