add pytest config for testing infrastructure

This commit is contained in:
Maxim Kurnikov
2018-11-10 17:37:03 +03:00
parent 1016ece491
commit 7436d641e3
3 changed files with 10 additions and 5 deletions

View File

@@ -13,14 +13,17 @@ TEST_DATA_DIR = ROOT_DIR / 'test' / 'test-data'
class DjangoTestSuite(DataSuite):
files = [
'basic-check.test'
'check-postgres-fields.test'
]
data_prefix = str(TEST_DATA_DIR)
def run_case(self, testcase: DataDrivenTestCase) -> None:
assert testcase.old_cwd is not None, "test was not properly set up"
mypy_cmdline = []
mypy_cmdline = [
'--show-traceback',
'--no-silence-site-packages'
]
mypy_cmdline.append('--python-version={}'.format('.'.join(map(str,
sys.version_info[:2]))))