Skip to content

Commit

Permalink
tests: Fix test_app_failed_analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
maringuu committed Jul 13, 2023
1 parent ba5baa8 commit a01c26d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/test/unit/web_interface/test_app_show_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@ class IntercomMock(CommonIntercomMock):
def add_single_file_task(self, task):
self.task_list.append(task)

@staticmethod
def get_available_analysis_plugins():
plugins = CommonIntercomMock.get_available_analysis_plugins()

common_fields = ('0.0.', [], [], [], 1)
plugins.update(
{
'failed_analysis': ('plugin description', False, {'default': True}, *common_fields),
}
)

return plugins


class DbMock(CommonDatabaseMock):
def get_object(self, uid, analysis_filter=None):
Expand Down

0 comments on commit a01c26d

Please sign in to comment.