Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stlk committed Sep 30, 2024
1 parent e4d63b0 commit cf8945d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions shopify_auth/session_tokens/tests/test_managed_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ def test_session_token_bounce_page_url(self):
expected_url = '/bounce/?param1=value1&shopify-reload=%2Ftest-path%2F%3Fparam1%3Dvalue1'
self.assertEqual(url, expected_url)

def test_session_token_bounce_page_url_missing_setting(self):
request = self.factory.get('/test-path/')

with self.settings(SHOPIFY_AUTH_BOUNCE_PAGE_URL=None):
with self.assertRaises(ImproperlyConfigured):
session_token_bounce_page_url(request)

def test_redirect_to_session_token_bounce_page(self):
request = self.factory.get('/test-path/')

Expand Down
1 change: 1 addition & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
'SHOPIFY_APP_API_SCOPE': ['read_products'],
'SHOPIFY_APP_DEV_MODE': False,
'SHOPIFY_APP_THIRD_PARTY_COOKIE_CHECK': True,
'SHOPIFY_AUTH_BOUNCE_PAGE_URL': '/',
'SECRET_KEY': 'uq8e140t1rm3^kk&blqxi*y9h_j5yd9ghjv+fd1p%08g4%t6%i',
'MIDDLEWARE': [
'django.middleware.common.CommonMiddleware',
Expand Down

0 comments on commit cf8945d

Please sign in to comment.