Exemple #1
0
    def test_create_user_table(self):
        """
        Make sure the table can be created.
        """
        exception = None
        try:
            BaseUser.create_table().run_sync()
        except Exception as e:
            exception = e
        else:
            BaseUser.alter().drop_table().run_sync()

        if exception:
            raise exception

        self.assertFalse(exception)
Exemple #2
0
 def tearDown(self):
     BaseUser.alter().drop_table().run_sync()
Exemple #3
0
 def tearDown(self):
     TokenAuth.alter().drop_table().run_sync()
     BaseUser.alter().drop_table().run_sync()
Exemple #4
0
 def tearDown(self):
     SessionsBase.alter().drop_table().run_sync()
     BaseUser.alter().drop_table().run_sync()