Skip to content

Commit

Permalink
rest put firmware: intercom test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jstucke committed Oct 19, 2023
1 parent 754b58f commit f0ea020
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit f0ea020

Please sign in to comment.