Skip to content

Commit

Permalink
Set mastodon config for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandgeider committed Nov 19, 2023
1 parent 359a44a commit a4183ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions wger/core/tests/test_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
)
from wger.core.tests.base_testcase import WgerTestCase


logger = logging.getLogger(__name__)


Expand All @@ -46,6 +45,7 @@ def test_registration_captcha(self):
'ALLOW_REGISTRATION': True,
'ALLOW_GUEST_USERS': True,
'TWITTER': False,
'MASTODON': False,
'MIN_ACCOUNT_AGE_TO_TRUST': 21,
}
):
Expand All @@ -58,14 +58,14 @@ def test_registration_captcha(self):
'ALLOW_REGISTRATION': True,
'ALLOW_GUEST_USERS': True,
'TWITTER': False,
'MASTODON': False,
'MIN_ACCOUNT_AGE_TO_TRUST': 21,
}
):
response = self.client.get(reverse('core:user:registration'))
self.assertIsInstance(response.context['form'], RegistrationFormNoCaptcha)

def test_register(self):

# Fetch the registration page
response = self.client.get(reverse('core:user:registration'))
self.assertEqual(response.status_code, 200)
Expand Down Expand Up @@ -181,7 +181,6 @@ def test_registration_deactivated(self):
'MIN_ACCOUNT_AGE_TO_TRUST': 21,
}
):

# Fetch the registration page
response = self.client.get(reverse('core:user:registration'))
self.assertEqual(response.status_code, 302)
Expand Down
1 change: 1 addition & 0 deletions wger/core/tests/test_temporary_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def test_demo_data_no_guest_account(self):
'ALLOW_REGISTRATION': True,
'ALLOW_GUEST_USERS': False,
'TWITTER': False,
'MASTODON': False,
'MIN_ACCOUNT_AGE_TO_TRUST': 21,
}
):
Expand Down

0 comments on commit a4183ee

Please sign in to comment.