示例#1
0
class OAuth2FlowTests(LoginMixin, WebAppTest):
    def setUp(self):
        """
        Instantiate the page objects.
        """
        super().setUp()
        self.credentials_api_page = CredentialsDRFPage(self.browser)

    def test_login(self):
        """
        Note: If you are testing locally with a VM and seeing signature expiration
        errors, ensure the clocks of the VM and host are synced within at least
        one minute (the default signature expiration time) of each other.
        """
        self.login_with_lms()

        # Visit DRF page of credentials and verify user is logged in.
        self.credentials_api_page.visit()
        self.credentials_api_page.login()
        self.assertTrue(self.credentials_api_page.is_user_logged_in())
示例#2
0
class OAuth2FlowTests(LoginMixin, WebAppTest):
    def setUp(self):
        """
        Instantiate the page objects.
        """
        super(OAuth2FlowTests, self).setUp()
        self.credentials_api_page = CredentialsDRFPage(self.browser)

    def test_login(self):
        """
        Note: If you are testing locally with a VM and seeing signature expiration
        errors, ensure the clocks of the VM and host are synced within at least
        one minute (the default signature expiration time) of each other.
        """
        self.login_with_lms()

        # Visit DRF page of credentials and verify user is logged in.
        self.credentials_api_page.visit()
        self.credentials_api_page.login()
        self.assertTrue(self.credentials_api_page.is_user_logged_in())
示例#3
0
 def setUp(self):
     """
     Instantiate the page objects.
     """
     super().setUp()
     self.credentials_api_page = CredentialsDRFPage(self.browser)
示例#4
0
 def setUp(self):
     """
     Instantiate the page objects.
     """
     super(OAuth2FlowTests, self).setUp()
     self.credentials_api_page = CredentialsDRFPage(self.browser)