mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-06-25 10:12:45 -04:00
c3acf8a5d2
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
18 lines
436 B
Python
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)
|