Skip to content

Commit

Permalink
Fix stubtest for sqlalchemy.testing.plugin.pytestplugin (#9533)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Jan 14, 2023
1 parent 1a9aa3f commit 85792bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
1 change: 1 addition & 0 deletions stubs/SQLAlchemy/@tests/requirements-stubtest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pytest
5 changes: 1 addition & 4 deletions stubs/SQLAlchemy/@tests/stubtest_allowlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ sqlalchemy.testing.provision.stop_test_class_outside_fixtures
sqlalchemy.testing.provision.temp_table_keyword_args
sqlalchemy.testing.provision.update_db_opts

# requires other packages
sqlalchemy.testing.plugin.pytestplugin

# can't be imported
# KeyError/AttributeError on import due to dynamic initialization from a different module
sqlalchemy.testing.fixtures
sqlalchemy.testing.pickleable
sqlalchemy.testing.plugin.bootstrap
Expand Down
7 changes: 2 additions & 5 deletions stubs/SQLAlchemy/sqlalchemy/testing/plugin/pytestplugin.pyi
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from typing import Any
from typing_extensions import Final

from . import plugin_base

has_xdist: bool
py2k: Any
py2k: Final = False

def pytest_addoption(parser) -> None: ...
def pytest_configure(config) -> None: ...
Expand All @@ -14,8 +13,6 @@ def collect_types_fixture() -> None: ...
def pytest_sessionstart(session) -> None: ...
def pytest_sessionfinish(session) -> None: ...
def pytest_collection_finish(session): ...
def pytest_configure_node(node) -> None: ...
def pytest_testnodedown(node, error) -> None: ...
def pytest_collection_modifyitems(session, config, items): ...
def pytest_pycollect_makeitem(collector, name, obj): ...
def pytest_runtest_setup(item) -> None: ...
Expand Down

0 comments on commit 85792bc

Please sign in to comment.