Skip to content

Commit

Permalink
got the patch path wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlandia committed Jun 28, 2023
1 parent 481258d commit 131b012
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def deactivate_user(self, color, username=None):
})
return response

@patch('tahoe_idp.receivers.helpers.is_idp_enabled', new=patches.dummy_receivers_idp_not_enabled)
@patch('tahoe_idp.receivers.helpers.is_tahoe_idp_enabled', new=patches.dummy_receivers_idp_not_enabled)
@patch('tahoe_idp.api.get_tahoe_idp_id_by_user')
@patch('tahoe_idp.api.deactivate_user')
@patch.dict('django.conf.settings.FEATURES', {'ENABLE_TAHOE_IDP': True})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_successful_email_change_without_idp(self, mock_update_user_email):
'Should not use idp unless explicitly enabled via ENABLE_TAHOE_IDP'
)

@patch('tahoe_idp.receivers.helpers.is_idp_enabled', new=patches.dummy_receivers_idp_not_enabled)
@patch('tahoe_idp.receivers.helpers.is_tahoe_idp_enabled', new=patches.dummy_receivers_idp_not_enabled)
@patch('tahoe_idp.api.update_user_email')
def test_successful_email_change_with_idp(self, mock_update_user_email, mock_receivers_is_idp_enabled):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

@ddt.ddt
@skip_unless_lms
@patch('tahoe_idp.receivers.helpers.is_idp_enabled', new=patches.dummy_receivers_idp_not_enabled)
@patch('tahoe_idp.receivers.helpers.is_tahoe_idp_enabled', new=patches.dummy_receivers_idp_not_enabled)
@patch('tahoe_idp.api.request_password_reset')
class TahoeIdpResetPasswordTests(TestCase):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_api_without_tahoe_idp(self, url):
content = response.content.decode('utf-8')
assert response.status_code == status.HTTP_200_OK, '{} {}'.format(color1, content)

@patch('tahoe_idp.receivers.helpers.is_idp_enabled', new=patches.dummy_receivers_idp_not_enabled)
@patch('tahoe_idp.receivers.helpers.is_tahoe_idp_enabled', new=patches.dummy_receivers_idp_not_enabled)
@patch.dict('django.conf.settings.FEATURES', {'ENABLE_TAHOE_IDP': True})
@ddt.data(
reverse_lazy('tahoe-api:v1:registrations-list'),
Expand Down

0 comments on commit 131b012

Please sign in to comment.