Fix tests revealed to be in error by autospec.

This commit is contained in:
Calen Pennington
2015-09-29 09:30:38 -04:00
parent 60c2e45fbc
commit 64f3229ce0

View File

@@ -70,7 +70,7 @@ def test_storage_url_exists(mock_storage):
assert_equals('"/static/file.png"', replace_static_urls(STATIC_SOURCE, DATA_DIRECTORY))
mock_storage.exists.assert_called_once_with('file.png')
mock_storage.url.assert_called_once_with('data_dir/file.png')
mock_storage.url.assert_called_once_with('file.png')
@patch('static_replace.staticfiles_storage', autospec=True)
@@ -80,7 +80,7 @@ def test_storage_url_not_exists(mock_storage):
assert_equals('"/static/data_dir/file.png"', replace_static_urls(STATIC_SOURCE, DATA_DIRECTORY))
mock_storage.exists.assert_called_once_with('file.png')
mock_storage.url.assert_called_once_with('file.png')
mock_storage.url.assert_called_once_with('data_dir/file.png')
@patch('static_replace.StaticContent', autospec=True)