Esempio n. 1
0
 def tearDown(self):
     add_database_to_settings('test_kc_tecnomobile')
     add_database_to_settings('test_kc_sabc')
     add_database_to_settings('test_kc_ems')
     wipe_test_data()
     wipe_test_data('test_kc_tecnomobile')
     wipe_test_data('test_kc_sabc')
     wipe_test_data('test_kc_ems')
     wipe_test_data(UMBRELLA)
Esempio n. 2
0
 def setUp(self):
     self.client = Client()
     add_database_to_settings('test_kc_tecnomobile')
     add_database_to_settings('test_kc_sabc')
     add_database_to_settings('test_kc_ems')
     wipe_test_data()
     wipe_test_data('test_kc_tecnomobile')
     wipe_test_data('test_kc_sabc')
     wipe_test_data('test_kc_ems')
     wipe_test_data(UMBRELLA)
     for fixture in self.fixtures:
         call_command('loaddata', fixture)
         call_command('loaddata', fixture, database='test_kc_tecnomobile')
         call_command('loaddata', fixture, database='test_kc_sabc')
         call_command('loaddata', fixture, database='test_kc_ems')
         call_command('loaddata', fixture, database=UMBRELLA)
     call_command('loaddata', 'orders.yaml')
Esempio n. 3
0
 def tearDown(self):
     wipe_test_data()
     wipe_test_data(UMBRELLA)
Esempio n. 4
0
 def tearDown(self):
     wipe_test_data()
     wipe_test_data(UMBRELLA)
     wipe_test_data('levignon')
Esempio n. 5
0
 def tearDown(self):
     wipe_test_data()
Esempio n. 6
0
 def tearDown(self):
     wipe_test_data()
     wipe_test_data('test_kc_tecnomobile')
Esempio n. 7
0
 def tearDown(self):
     wipe_test_data()
     wipe_test_data('umbrella')
Esempio n. 8
0
 def tearDown(self):
     add_database_to_settings('test_kc_tecnomobile')
     add_database_to_settings('test_kc_sabc')
     add_database_to_settings('test_kc_foka')
     add_database_to_settings('test_kc_ems')
     add_database_to_settings('test_kc_afic')
     wipe_test_data()
     wipe_test_data('test_kc_tecnomobile')
     wipe_test_data('test_kc_sabc')
     wipe_test_data('test_kc_foka')
     wipe_test_data('test_kc_ems')
     wipe_test_data('test_kc_afic')
     wipe_test_data(UMBRELLA)
     OperatorWallet.objects.using(WALLETS_DB_ALIAS).all().update(balance=0)
     cache.clear()
Esempio n. 9
0
    def setUp(self):
        self.client = Client()
        add_database_to_settings('test_kc_tecnomobile')
        add_database_to_settings('test_kc_sabc')
        add_database_to_settings('test_kc_foka')
        add_database_to_settings('test_kc_ems')
        wipe_test_data()
        wipe_test_data('test_kc_tecnomobile')
        wipe_test_data('test_kc_sabc')
        wipe_test_data('test_kc_foka')
        wipe_test_data('test_kc_ems')
        wipe_test_data(UMBRELLA)
        for fixture in self.fixtures:
            call_command('loaddata', fixture)
        call_command('loaddata', 'kc_members.yaml', database=UMBRELLA)

        for fixture in ['kc_setup_data.yaml', 'kc_operators_configs.yaml']:
            call_command('loaddata', fixture, database=UMBRELLA)
            call_command('loaddata', fixture, database='test_kc_tecnomobile')
            call_command('loaddata', fixture, database='test_kc_sabc')
            call_command('loaddata', fixture, database='test_kc_foka')
            call_command('loaddata', fixture, database='test_kc_ems')