예제 #1
0
파일: test_tables.py 프로젝트: zkan/piccolo
    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)
예제 #2
0
 def tearDown(self):
     BaseUser.alter().drop_table().run_sync()
예제 #3
0
 def tearDown(self):
     TokenAuth.alter().drop_table().run_sync()
     BaseUser.alter().drop_table().run_sync()
예제 #4
0
 def tearDown(self):
     SessionsBase.alter().drop_table().run_sync()
     BaseUser.alter().drop_table().run_sync()