This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/workers/securityworker/test/test_securityworker.py

11 lines
285 B
Python
Raw Normal View History

2017-06-28 11:03:57 +00:00
from mock import patch, Mock
from test.fixtures import *
from workers.securityworker import index_images
2017-06-29 06:43:04 +00:00
2017-06-28 11:03:57 +00:00
def test_securityworker_realdb(initialized_db):
mock_analyzer = Mock()
assert index_images(1, mock_analyzer) is not None
2017-06-28 11:03:57 +00:00
mock_analyzer.analyze_recursively.assert_called()