gordon.d...@gmail.com
unread,Oct 14, 2022, 12:28:04 PM10/14/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sqlalchemy-devel
I'm checking the version 2.0 test suite against sqlalchemy-cockroachdb. I'm not planning to fully implement get_multi_columns() right away, so I want to skip the related tests. As in previous cases, I have the following in test/test_suite_sqlalchemy.py :
```python
from sqlalchemy.testing.suite import ComponentReflectionTest as _ComponentReflectionTest
class ComponentReflectionTest(_ComponentReflectionTest):
@skip("cockroachdb") # noqa
def test_get_multi_columns(
self, get_multi_exp, schema, scope, kind, use_filter
):
pass
```
That produces the error
```
___________________ ERROR at setup of ComponentReflectionTest_cockroachdb+psycopg2_9_5_0.test_get_multi_columns ____________________
file /home/gord/git/sqlalchemy-cockroachdb/test/test_suite_sqlalchemy.py, line 27
@skip("cockroachdb") # noqa
def test_get_multi_columns(
E fixture 'schema' not found
> available fixtures: _setup_tables_test_class, _setup_tables_test_instance, async_testing_engine, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, close_result_when_finished, collect_types_fixture, connection, connection_no_trans, dc_decl_base, decl_base, doctest_namespace, fixture_session, future_connection, future_engine, get_multi_exp, metadata, monkeypatch, nocache, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, registry, setup_class_methods, setup_test_methods, testing_engine, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, trans_ctx_manager_fixture, worker_id
> use 'pytest --fixtures [testpath]' for help on them.
```
Is this missing "fixture" something that needs to be added to the 2.0 test setup, or am I doing something wrong?