Change security worker to use data interface
This commit is contained in:
parent
ec81148d73
commit
1ddb09ac11
7 changed files with 164 additions and 121 deletions
9
workers/securityworker/test/test_securityworker.py
Normal file
9
workers/securityworker/test/test_securityworker.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
from mock import patch, Mock
|
||||
|
||||
from test.fixtures import *
|
||||
from workers.securityworker import index_images
|
||||
|
||||
def test_securityworker_realdb(initialized_db):
|
||||
mock_analyzer = Mock()
|
||||
assert index_images(1, mock_analyzer) is not None
|
||||
mock_analyzer.analyze_recursively.assert_called()
|
Reference in a new issue