后台更新 服务优化
Build Backend JAR / build (push) Failing after 16m54s

This commit is contained in:
supernijia
2026-08-11 14:50:21 +08:00
parent 38216a1885
commit 5b1ccad40e
24 changed files with 1623 additions and 502 deletions
@@ -18,6 +18,12 @@ class _FakeExportResponse:
'Content-Type': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
}
def iter_content(self, chunk_size=None):
yield self.content
def close(self):
return None
class AdminDedupeTotalDataTest(unittest.TestCase):
def setUp(self):
@@ -138,12 +144,14 @@ class AdminDedupeTotalDataTest(unittest.TestCase):
response = admin_api.export_dedupe_total_data.__wrapped__()
self.assertEqual(response.status_code, 200)
self.assertEqual(response.get_data(), b'xlsx')
self.assertEqual(session.kwargs['params'], {
'operatorId': 7,
'username': 'operator',
'groupId': 3,
})
self.assertEqual(session.kwargs['headers'], {'X-Internal-Token': 'token'})
self.assertTrue(session.kwargs['stream'])
def test_import_requires_group(self):
with self.app.test_request_context(