def test_drop_tables(self):
        """
        Make sure the tables are dropped.
        """
        self.assertEqual(Manager.table_exists().run_sync(), True)
        self.assertEqual(Band.table_exists().run_sync(), True)

        drop_tables(Manager, Band)

        self.assertEqual(Manager.table_exists().run_sync(), False)
        self.assertEqual(Band.table_exists().run_sync(), False)
 def tearDown(self):
     drop_tables(Migration, TableA, TableB)
 def tearDown(self):
     drop_tables(Migration, Band, Genre, GenreToBand)
Exemple #4
0
 def tearDown(self):
     drop_tables(*TABLES)
Exemple #5
0
 def tearDown(self):
     drop_tables(Manager, Band)
Exemple #6
0
 def tearDown(self):
     drop_tables(*SIMPLE_SCHEMA)
Exemple #7
0
 def tearDown(self):
     drop_tables(*COMPLEX_SCHEMA)
Exemple #8
0
 def tearDown(self):
     drop_tables(*CUSTOM_PK_SCHEMA)