mirror of
https://github.com/apache/superset.git
synced 2026-09-01 21:11:28 +00:00
- pyproject.toml: pin psycopg2-binary alongside sqlalchemy-cockroachdb -- the latter declares no DBAPI dependency of its own, so the documented `apache-superset[cockroachdb]` install couldn't actually connect. - testcontainers.yml: scope the concurrency group by ref so a PR run and the nightly cron (or two different PRs) no longer cancel each other. - test_cockroachdb.py: assert the actual generic/SQLAlchemy type, matching the Trino test, instead of only checking a column spec was found. - pytest.ini + new `testcontainers` marker + _driver.py: exclude tests/testcontainers/ from a plain `pytest` run by default (it needs Docker), while the dedicated CI job now sets SUPERSET_TESTCONTAINERS_STRICT so a broken/missing driver import fails that job instead of silently skipping to a green, zero-tests-run result. - UPDATING.md: the migration note now says to uninstall the old `cockroachdb` package outright, since reinstalling the extra alone can leave both packages registering the same dialect entry point. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
34 lines
1.5 KiB
INI
34 lines
1.5 KiB
INI
#
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
# this work for additional information regarding copyright ownership.
|
|
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
# (the "License"); you may not use this file except in compliance with
|
|
# the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
[pytest]
|
|
testpaths =
|
|
tests
|
|
python_files = *_test.py test_*.py *_tests.py *viz/utils.py
|
|
# `-p no:warnings` temporarily disabled in favor of more finely tuned `filterwarnings`.
|
|
# `not testcontainers` excludes tests/testcontainers/ by default: those spin up
|
|
# real Docker containers, and `testpaths = tests` would otherwise pull them into
|
|
# every plain `pytest` run. The dedicated CI job (testcontainers.yml) overrides
|
|
# this with an explicit `-m testcontainers` to run them.
|
|
addopts = -m "not testcontainers"
|
|
markers =
|
|
testcontainers: exercises a real database via testcontainers-python (needs Docker); excluded by default, see .github/workflows/testcontainers.yml
|
|
asyncio_mode = auto
|
|
|
|
# `ignore` is effectively equivalent to `-p no:warnings`.
|
|
filterwarnings =
|
|
ignore
|