Install native audio separator with model packages WAV tests and restore recipe

This commit is contained in:
Mikei386
2026-10-01 12:00:36 +02:00
parent c3db35dada
commit 66b035c8d7
20 changed files with 368 additions and 23 deletions
+10
View File
@@ -58,6 +58,16 @@ class Tests(unittest.TestCase):
self.assertEqual(error.exception.code,401);error.exception.close()
self.assertEqual(action.call_count,count)
def test_separator_runtime_is_admin_only_and_rejects_unknown_package(self):
status=self.request('separator-runtime')
self.assertFalse(status['installed']);self.assertEqual(len(status['models']),2)
req=urllib.request.Request(self.url+'/api/v1/separator-runtime/download',data=b'{"model":"unknown"}',headers={'Cookie':self.cookie,'X-Athena-Deck':'1','Content-Type':'application/json'})
with self.assertRaises(urllib.error.HTTPError) as error:urllib.request.urlopen(req)
self.assertEqual(error.exception.code,400);error.exception.close()
req=urllib.request.Request(self.url+'/api/v1/separator-runtime/install',data=b'{}',headers={'Authorization':'Bearer '+self.api_token,'X-Athena-Deck':'1','Content-Type':'application/json'})
with self.assertRaises(urllib.error.HTTPError) as error:urllib.request.urlopen(req)
self.assertEqual(error.exception.code,401);error.exception.close()
def test_demo_removed_from_status(self):
state=self.request('status')
self.assertNotIn('demo',state)