Files
sqlalchemy/test/typing/test_mypy.py
T
Federico Caselli c3acf8a5d2 Improve typing tests
Extract a fixture to run mypy on files
Move the plain files to test/typing
Move test files from stubs repository
Transform the fixture module in a package

Change-Id: I23acaecb84e7c4b9010259d44395dc1df83a9385
2023-06-27 23:50:25 +02:00

18 lines
436 B
Python

import os
from sqlalchemy import testing
from sqlalchemy.testing import fixtures
class MypyPlainTest(fixtures.MypyTest):
@testing.combinations(
*(
(os.path.basename(path), path)
for path in fixtures.MypyTest.file_combinations("plain_files")
),
argnames="path",
id_="ia",
)
def test_mypy_no_plugin(self, mypy_typecheck_file, path):
mypy_typecheck_file(path)