Ejemplo n.º 1
0
 def handle(self, *args, **kwargs):
     patch_sae_restful_mysql()
     kwargs.setdefault('database', DEFAULT_DB_ALIAS)
     super(Command, self).handle(*args, **kwargs)
Ejemplo n.º 2
0
 def test_patch_sae_restful_mysql(self):
     settings.patch_sae_restful_mysql()
     self.assertEqual(sys.modules['MySQLdb'], sae._restful_mysql)
Ejemplo n.º 3
0
 def test_patch_sae_restful_mysql(self):
     settings.patch_sae_restful_mysql()
     self.assertEqual(sys.modules['MySQLdb'], sae._restful_mysql)