Exemple #1
0
 def setUp(self):
     parser = create_parser()
     self.command = Command(parser.parse_args([]))
     working_dir = os.path.realpath(os.path.dirname(__file__))
     self.data_dir = os.path.join(working_dir, 'data')
     self.settings = {
         'ENGINE': 'django.db.backends.postgresql_psycopg2',
         'NAME': 'dbname',
         'HOST': 'host',
         'USER': '******',
         'PASSWORD': '******',
         'PORT': 'port'
     }
Exemple #2
0
 def setUp(self):
     self.parser = cli.create_parser()
Exemple #3
0
 def setUp(self):
     parser = create_parser()
     self.command = Command(parser.parse_args([]))
     working_dir = os.path.realpath(os.path.dirname(__file__))
     self.data_dir = os.path.join(working_dir, 'data')
Exemple #4
0
 def setUp(self):
     self.parser = create_parser()
     self.command = Command(self.parser.parse_args([]))