Пример #1
0
 def test_allow_migrate(self):
     router = DynamicDbRouter()
     allow_migrate = router.allow_migrate(None, None)
     self.assertEqual(allow_migrate, None)
Пример #2
0
 def test_allow_relation(self):
     router = DynamicDbRouter()
     allow_relation = router.allow_relation(None, None)
     self.assertEqual(allow_relation, True)
Пример #3
0
 def test_allow_syncdb(self):
     router = DynamicDbRouter()
     allow_syncdb = router.allow_syncdb(None, None)
     self.assertEqual(allow_syncdb, None)
Пример #4
0
 def test_db_for_read(self):
     router = DynamicDbRouter()
     db_for_read = router.db_for_read(None)
     self.assertIn(db_for_read, ['default', None])
Пример #5
0
 def test_db_for_wrte(self):
     router = DynamicDbRouter()
     db_for_write = router.db_for_write(None)
     self.assertIn(db_for_write, ['default', None])
Пример #6
0
 def test_allow_migrate(self):
     router = DynamicDbRouter()
     allow_migrate = router.allow_migrate(None, None)
     self.assertEqual(allow_migrate, None)
Пример #7
0
 def test_allow_syncdb(self):
     router = DynamicDbRouter()
     allow_syncdb = router.allow_syncdb(None, None)
     self.assertEqual(allow_syncdb, None)
Пример #8
0
 def test_allow_relation(self):
     router = DynamicDbRouter()
     allow_relation = router.allow_relation(None, None)
     self.assertEqual(allow_relation, True)
Пример #9
0
 def test_db_for_wrte(self):
     router = DynamicDbRouter()
     db_for_write = router.db_for_write(None)
     self.assertIn(db_for_write, ['default', None])
Пример #10
0
 def test_db_for_read(self):
     router = DynamicDbRouter()
     db_for_read = router.db_for_read(None)
     self.assertIn(db_for_read, ['default', None])