Skip to content

Commit 441c0fe

Browse files
committed
Fix testcases with basic on trigger_build
1 parent 32067dc commit 441c0fe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

readthedocs/rtd_tests/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def tearDown(self):
3333
settings.DOCROOT = self.original_DOCROOT
3434

3535

36-
@patch('readthedocs.projects.views.private.trigger_build', lambda x, basic: None)
37-
@patch('readthedocs.projects.views.private.trigger_build', lambda x, basic: None)
36+
@patch('readthedocs.projects.views.private.trigger_build', lambda x: None)
37+
@patch('readthedocs.projects.views.private.trigger_build', lambda x: None)
3838
class MockBuildTestCase(TestCase):
3939

4040
"""Mock build triggers for test cases."""
@@ -97,7 +97,7 @@ class WizardTestCase(RequestFactoryTestMixin, TestCase):
9797
wizard_class_slug = None
9898
wizard_class = None
9999

100-
@patch('readthedocs.projects.views.private.trigger_build', lambda x, basic: None)
100+
@patch('readthedocs.projects.views.private.trigger_build', lambda x: None)
101101
def post_step(self, step, **kwargs):
102102
"""
103103
Post step form data to `url`, using supplementary `kwargs`

readthedocs/rtd_tests/tests/test_project_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from readthedocs.projects import tasks
2626

2727

28-
@patch('readthedocs.projects.views.private.trigger_build', lambda x, basic: None)
28+
@patch('readthedocs.projects.views.private.trigger_build', lambda x: None)
2929
class TestProfileMiddleware(RequestFactoryTestMixin, TestCase):
3030

3131
wizard_class_slug = 'import_wizard_view'

0 commit comments

Comments
 (0)