From 64f3229ce01aa1c18fd24a8bc4aada9090952720 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Tue, 29 Sep 2015 09:30:38 -0400 Subject: [PATCH] Fix tests revealed to be in error by autospec. --- common/djangoapps/static_replace/test/test_static_replace.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/djangoapps/static_replace/test/test_static_replace.py b/common/djangoapps/static_replace/test/test_static_replace.py index feeb5da3f5..0d86acfdc7 100644 --- a/common/djangoapps/static_replace/test/test_static_replace.py +++ b/common/djangoapps/static_replace/test/test_static_replace.py @@ -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)