This repository has been archived on 2020-03-24. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
quay/workers/securityworker/test/test_securityworker.py
Joseph Schorr 27ed3bedcc yapf
2017-06-29 09:43:04 +03:00

10 lines
285 B
Python

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()