From f0ea020319314ba6a74571d0fc9706cc8435b36b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Stucke?= Date: Thu, 19 Oct 2023 15:27:27 +0200 Subject: [PATCH] rest put firmware: intercom test fix --- .../integration/web_interface/rest/test_rest_firmware.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/integration/web_interface/rest/test_rest_firmware.py b/src/test/integration/web_interface/rest/test_rest_firmware.py index f6d0d3dc3..b2f89a37c 100644 --- a/src/test/integration/web_interface/rest/test_rest_firmware.py +++ b/src/test/integration/web_interface/rest/test_rest_firmware.py @@ -47,7 +47,11 @@ def test_rest_search_not_existing(self, backend_db): rv = self.test_client.get(f'/rest/firmware?query={query}', follow_redirects=True) assert b'"uids": []' in rv.data - def test_rest_upload_valid(self): + def test_rest_upload_valid(self, monkeypatch): + monkeypatch.setattr( + 'intercom.front_end_binding.InterComFrontEndBinding.get_available_analysis_plugins', + lambda _: ['dummy'], + ) data = { 'binary': standard_b64encode(b'test_file_content').decode(), 'file_name': 'test_file.txt',