Browse Source

Fix origin tests to explicitly set no default

David Cramer 9 years ago
parent
commit
98941bcc6f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/integration/tests.py

+ 2 - 0
tests/integration/tests.py

@@ -185,12 +185,14 @@ class SentryRemoteTest(TestCase):
 
     @override_settings(SENTRY_ALLOW_ORIGIN='getsentry.com')
     def test_get_without_referer(self):
+        self.project.update_option('sentry:origins', '')
         kwargs = {'message': 'hello'}
         resp = self._getWithReferer(kwargs, referer=None, protocol='4')
         assert resp.status_code == 403, (resp.status_code, resp.get('X-Sentry-Error'))
 
     @override_settings(SENTRY_ALLOW_ORIGIN='*')
     def test_get_without_referer_allowed(self):
+        self.project.update_option('sentry:origins', '')
         kwargs = {'message': 'hello'}
         resp = self._getWithReferer(kwargs, referer=None, protocol='4')
         assert resp.status_code == 200, (resp.status_code, resp.get('X-Sentry-Error'))