release: OpenNexus 0.5.0

This commit is contained in:
2026-09-17 20:59:32 +08:00
parent e86809b238
commit f7d441bd92
34 changed files with 509 additions and 60 deletions
+12
View File
@@ -96,6 +96,18 @@ def test_terminology_export_and_privacy_cleanup():
first = client.post(f'/api/media/transcriptions/{job_id}/notes', json={'title':'课程'}).json()
again = client.post(f'/api/media/transcriptions/{job_id}/notes', json={'title':'课程'}).json()
assert first['note_id'] == again['note_id']
artifacts = client.post(f'/api/media/transcriptions/{job_id}/artifacts', json={
'title': '课程', 'knowledge_title': '课程知识点',
'provider_id': 'mock', 'model': 'mock-1',
})
assert artifacts.status_code == 201
assert artifacts.json()['transcript']['note_id'] == first['note_id']
assert artifacts.json()['knowledge_note']['note_id'] != first['note_id']
repeated = client.post(f'/api/media/transcriptions/{job_id}/artifacts', json={
'title': '课程', 'knowledge_title': '课程知识点',
'provider_id': 'mock', 'model': 'mock-1',
})
assert repeated.json()['knowledge_note']['note_id'] == artifacts.json()['knowledge_note']['note_id']
response = client.delete('/api/media/attachments/lecture.txt')
assert first['note_id'] in response.json()['retained_note_ids']
cleaned = client.get(f'/api/media/transcriptions/{job_id}').json()
-2
View File
@@ -13,8 +13,6 @@ def isolate(monkeypatch, tmp_path):
monkeypatch.setattr(components, 'ROOT', tmp_path / 'cuda')
monkeypatch.setattr(components, 'state', {'status': 'unchecked', 'stage': '', 'cuda_available': None})
monkeypatch.setattr(components, 'task', None)
def test_status_checks_without_installing_and_detects_existing_cuda(monkeypatch):
python = components.ROOT / 'Scripts/python.exe'
python.parent.mkdir(parents=True)