test_oauth_authorize.py 550 B

12345678910111213141516
  1. from sentry.testutils.cases import AcceptanceTestCase
  2. from sentry.testutils.silo import no_silo_test
  3. @no_silo_test
  4. class OAuthAuthorizeTest(AcceptanceTestCase):
  5. def setUp(self):
  6. super().setUp()
  7. self.user = self.create_user("foo@example.com", is_superuser=True)
  8. self.login_as(self.user)
  9. def test_simple(self):
  10. self.browser.get("/debug/oauth/authorize/")
  11. self.browser.wait_until_not(".loading")
  12. self.browser.get("/debug/oauth/authorize/error/")
  13. self.browser.wait_until_not(".loading")