Skip to content

Commit b8ceb55

Browse files
committed
Small human cleanup of test cases
1 parent 71f3770 commit b8ceb55

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

readthedocs/rtd_tests/tests/test_core_management.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def _input(_, files=None):
4040
assert cmd._get_input() == '{"test": "foobar"}'
4141

4242
@patch.object(run_docker.Command, '_get_input', _get_input)
43-
.patch('readthedocs.projects.tasks.docker_build', _docker_build)
43+
@patch('readthedocs.projects.tasks.docker_build', _docker_build)
4444
@patch('sys.stdout', new_callable=StringIO)
4545
def test_good_input(self, mock_output):
4646
'''Test docker build command'''
@@ -52,7 +52,7 @@ def test_good_input(self, mock_output):
5252
'{"html": [0, "DOCKER PASS", ""]}\n'
5353
)
5454

55-
.patch('readthedocs.projects.tasks.docker_build', _docker_build)
55+
@patch('readthedocs.projects.tasks.docker_build', _docker_build)
5656
def test_bad_input(self):
5757
'''Test docker build command'''
5858
with patch.object(run_docker.Command, '_get_input') as mock_input:

readthedocs/rtd_tests/tests/test_project_symlinks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def wrapper(self):
1818
def _collect_commands(cmd):
1919
self.commands.append(cmd)
2020

21-
with.patch('readthedocs.projects.symlinks.run_on_app_servers', _collect_commands):
21+
with patch('readthedocs.projects.symlinks.run_on_app_servers', _collect_commands):
2222
with patch('readthedocs.projects.symlinks.run_on_app_servers', _collect_commands):
2323
return fn(self)
2424
return wrapper

readthedocs/rtd_tests/tests/test_urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class SubdomainUrlTests(TestCase):
99

1010
def test_sub_index(self):
11-
url = reverse(core.views.redirect_project_slug,
11+
url = reverse(readthedocs.core.views.redirect_project_slug,
1212
urlconf='readthedocs.core.subdomain_urls')
1313
self.assertEqual(url, '/')
1414

0 commit comments

Comments
 (0)