Skip to content

Commit

Permalink
Fake TAHOE_IDP_CONFIGS in tests that will trigger tahoe-idp idp user …
Browse files Browse the repository at this point in the history
…sync receiver
  • Loading branch information
bryanlandia committed Jun 27, 2023
1 parent 20bac3a commit 27ca3a8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from django.urls import reverse
from django.contrib.auth import get_user_model
from django.test import override_settings
from rest_framework.test import APITestCase
from rest_framework import status

Expand Down Expand Up @@ -67,6 +68,7 @@ def deactivate_user(self, color, username=None):
@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})
@override_settings(TAHOE_IDP_CONFIGS={'API_KEY':'fake', 'BASE_URL': 'http://localhost'})
def test_disallow_email_reuse_after_deactivate(
self, mock_deactivate_user, mock_get_tahoe_idp_id_by_user
):
Expand Down

0 comments on commit 27ca3a8

Please sign in to comment.