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' }
def setUp(self): self.parser = cli.create_parser()
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')
def setUp(self): self.parser = create_parser() self.command = Command(self.parser.parse_args([]))