]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Improve typing tests
authorFederico Caselli <cfederico87@gmail.com>
Fri, 23 Jun 2023 17:58:54 +0000 (19:58 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Tue, 27 Jun 2023 21:50:25 +0000 (23:50 +0200)
commitc3acf8a5d23881ed4795fb5ca1c28fae0adc6414
treeaa857459e1bff8b1b826e2acdf87ff2ced8286b5
parentcb39c0109ef5167de3a7a682cc553480172dac82
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
106 files changed:
lib/sqlalchemy/orm/writeonly.py
lib/sqlalchemy/testing/config.py
lib/sqlalchemy/testing/fixtures.py [deleted file]
lib/sqlalchemy/testing/fixtures/__init__.py [new file with mode: 0644]
lib/sqlalchemy/testing/fixtures/base.py [new file with mode: 0644]
lib/sqlalchemy/testing/fixtures/mypy.py [new file with mode: 0644]
lib/sqlalchemy/testing/fixtures/orm.py [new file with mode: 0644]
lib/sqlalchemy/testing/fixtures/sql.py [new file with mode: 0644]
lib/sqlalchemy/testing/pickleable.py
lib/sqlalchemy/testing/plugin/plugin_base.py
lib/sqlalchemy/testing/plugin/pytestplugin.py
lib/sqlalchemy/testing/util.py
setup.cfg
test/aaa_profiling/test_memusage.py
test/ext/asyncio/test_session_py3k.py
test/ext/declarative/test_inheritance.py
test/ext/declarative/test_reflection.py
test/ext/mypy/plain_files/core_ddl.py [deleted file]
test/ext/mypy/test_mypy_plugin_py3k.py
test/ext/test_associationproxy.py
test/ext/test_indexable.py
test/ext/test_mutable.py
test/ext/test_serializer.py
test/orm/declarative/test_basic.py
test/orm/declarative/test_inheritance.py
test/orm/declarative/test_reflection.py
test/orm/dml/test_bulk_statements.py
test/orm/inheritance/_poly_fixtures.py
test/orm/inheritance/test_abc_polymorphic.py
test/orm/inheritance/test_assorted_poly.py
test/orm/inheritance/test_basic.py
test/orm/inheritance/test_poly_loading.py
test/orm/inheritance/test_poly_persistence.py
test/orm/inheritance/test_relationship.py
test/orm/inheritance/test_selects.py
test/orm/inheritance/test_single.py
test/orm/test_ac_relationships.py
test/orm/test_attributes.py
test/orm/test_cascade.py
test/orm/test_defaults.py
test/orm/test_deferred.py
test/orm/test_deprecations.py
test/orm/test_eager_relations.py
test/orm/test_froms.py
test/orm/test_lazy_relations.py
test/orm/test_mapper.py
test/orm/test_merge.py
test/orm/test_query.py
test/orm/test_relationships.py
test/orm/test_scoping.py
test/orm/test_selectin_relations.py
test/orm/test_subquery_relations.py
test/orm/test_unitofwork.py
test/orm/test_unitofworkv2.py
test/orm/test_validators.py
test/typing/plain_files/dialects/postgresql/pg_stuff.py [moved from test/ext/mypy/plain_files/pg_stuff.py with 100% similarity]
test/typing/plain_files/engine/engine_inspection.py [moved from test/ext/mypy/plain_files/engine_inspection.py with 100% similarity]
test/typing/plain_files/engine/engines.py [new file with mode: 0644]
test/typing/plain_files/ext/association_proxy/association_proxy_one.py [moved from test/ext/mypy/plain_files/association_proxy_one.py with 100% similarity]
test/typing/plain_files/ext/association_proxy/association_proxy_three.py [moved from test/ext/mypy/plain_files/association_proxy_three.py with 100% similarity]
test/typing/plain_files/ext/association_proxy/association_proxy_two.py [moved from test/ext/mypy/plain_files/association_proxy_two.py with 100% similarity]
test/typing/plain_files/ext/asyncio/async_sessionmaker.py [moved from test/ext/mypy/plain_files/async_sessionmaker.py with 94% similarity]
test/typing/plain_files/ext/asyncio/async_stuff.py [new file with mode: 0644]
test/typing/plain_files/ext/asyncio/create_proxy_methods.py [new file with mode: 0644]
test/typing/plain_files/ext/asyncio/engines.py [moved from test/ext/mypy/plain_files/engines.py with 73% similarity]
test/typing/plain_files/ext/hybrid/hybrid_four.py [moved from test/ext/mypy/plain_files/hybrid_four.py with 100% similarity]
test/typing/plain_files/ext/hybrid/hybrid_one.py [moved from test/ext/mypy/plain_files/hybrid_one.py with 100% similarity]
test/typing/plain_files/ext/hybrid/hybrid_three.py [moved from test/ext/mypy/plain_files/hybrid_three.py with 100% similarity]
test/typing/plain_files/ext/hybrid/hybrid_two.py [moved from test/ext/mypy/plain_files/hybrid_two.py with 100% similarity]
test/typing/plain_files/inspection_inspect.py [moved from test/ext/mypy/inspection_inspect.py with 78% similarity]
test/typing/plain_files/orm/complete_orm_no_plugin.py [moved from test/ext/mypy/plugin_files/complete_orm_no_plugin.py with 99% similarity]
test/typing/plain_files/orm/composite.py [moved from test/ext/mypy/plain_files/composite.py with 100% similarity]
test/typing/plain_files/orm/composite_dc.py [moved from test/ext/mypy/plain_files/composite_dc.py with 100% similarity]
test/typing/plain_files/orm/dataclass_transforms_one.py [moved from test/ext/mypy/plain_files/dataclass_transforms_one.py with 100% similarity]
test/typing/plain_files/orm/declared_attr_one.py [moved from test/ext/mypy/plain_files/declared_attr_one.py with 98% similarity]
test/typing/plain_files/orm/declared_attr_two.py [moved from test/ext/mypy/plain_files/declared_attr_two.py with 100% similarity]
test/typing/plain_files/orm/dynamic_rel.py [moved from test/ext/mypy/plain_files/dynamic_rel.py with 100% similarity]
test/typing/plain_files/orm/issue_9340.py [moved from test/ext/mypy/plain_files/issue_9340.py with 100% similarity]
test/typing/plain_files/orm/keyfunc_dict.py [moved from test/ext/mypy/plain_files/keyfunc_dict.py with 100% similarity]
test/typing/plain_files/orm/mapped_assign_expression.py [new file with mode: 0644]
test/typing/plain_files/orm/mapped_column.py [moved from test/ext/mypy/plain_files/mapped_column.py with 100% similarity]
test/typing/plain_files/orm/orm_config_constructs.py [moved from test/ext/mypy/plain_files/orm_config_constructs.py with 100% similarity]
test/typing/plain_files/orm/orm_querying.py [moved from test/ext/mypy/plain_files/orm_querying.py with 100% similarity]
test/typing/plain_files/orm/relationship.py [moved from test/ext/mypy/plain_files/experimental_relationship.py with 95% similarity]
test/typing/plain_files/orm/scoped_session.py [new file with mode: 0644]
test/typing/plain_files/orm/session.py [moved from test/ext/mypy/plain_files/session.py with 100% similarity]
test/typing/plain_files/orm/sessionmakers.py [moved from test/ext/mypy/plain_files/sessionmakers.py with 100% similarity]
test/typing/plain_files/orm/trad_relationship_uselist.py [moved from test/ext/mypy/plain_files/trad_relationship_uselist.py with 100% similarity]
test/typing/plain_files/orm/traditional_relationship.py [moved from test/ext/mypy/plain_files/traditional_relationship.py with 100% similarity]
test/typing/plain_files/orm/typed_queries.py [moved from test/ext/mypy/plain_files/typed_queries.py with 100% similarity]
test/typing/plain_files/orm/write_only.py [moved from test/ext/mypy/plain_files/write_only.py with 100% similarity]
test/typing/plain_files/sql/common_sql_element.py [moved from test/ext/mypy/plain_files/common_sql_element.py with 100% similarity]
test/typing/plain_files/sql/core_ddl.py [new file with mode: 0644]
test/typing/plain_files/sql/dml.py [moved from test/ext/mypy/plain_files/dml.py with 100% similarity]
test/typing/plain_files/sql/functions.py [moved from test/ext/mypy/plain_files/functions.py with 100% similarity]
test/typing/plain_files/sql/functions_again.py [new file with mode: 0644]
test/typing/plain_files/sql/lambda_stmt.py [moved from test/ext/mypy/plain_files/lambda_stmt.py with 100% similarity]
test/typing/plain_files/sql/lowercase_objects.py [new file with mode: 0644]
test/typing/plain_files/sql/operators.py [new file with mode: 0644]
test/typing/plain_files/sql/selectables.py [moved from test/ext/mypy/plain_files/selectables.py with 100% similarity]
test/typing/plain_files/sql/sql_operations.py [moved from test/ext/mypy/plain_files/sql_operations.py with 100% similarity]
test/typing/plain_files/sql/sqltypes.py [moved from test/ext/mypy/plain_files/sqltypes.py with 100% similarity]
test/typing/plain_files/sql/typed_results.py [moved from test/ext/mypy/plain_files/typed_results.py with 100% similarity]
test/typing/test_mypy.py [new file with mode: 0644]
test/typing/test_overloads.py [moved from test/ext/mypy/test_overloads.py with 100% similarity]
tools/generate_sql_functions.py