mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-10 23:29:18 +08:00
add pytest config for testing infrastructure
This commit is contained in:
1 parent
1016ece491
commit
7436d641e3
3 files changed
+10
-5
No files matched your search
+5
-2
@@ -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]))))
|
||||
|
||||
|
||||
Reference in new issue
Block a user