Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,23 @@ def sqlalchemy_db(request: pytest.FixtureRequest, django_db_blocker, django_db_s
original_test_name = settings.DATABASES["default"]["TEST"]["NAME"]
settings.DATABASES["default"]["NAME"] = "sqlalchemy"
settings.DATABASES["default"]["TEST"]["NAME"] = "test_postgres_sqlalchemy"
for connection in connections:
if "timeseries" in connection:
with connections[connection].cursor() as cursor:
cursor.execute(
"SELECT _timescaledb_internal.stop_background_workers();"
)
db_cfg = setup_databases(
verbosity=request.config.option.verbose,
interactive=False,
keepdb=keepdb,
)
for connection in connections:
if "timeseries" in connection:
with connections[connection].cursor() as cursor:
cursor.execute(
"SELECT _timescaledb_internal.start_background_workers();"
)
settings.DATABASES["default"]["NAME"] = original_db_name
settings.DATABASES["default"]["TEST"]["NAME"] = original_test_name

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ dev-dependencies = [
[tool.uv.sources]
timestring = { git = "https://github.com/codecov/timestring", rev = "d37ceacc5954dff3b5bd2f887936a98a668dda42" }
test-results-parser = { git = "https://github.com/codecov/test-results-parser", rev = "190bbc8a911099749928e13d5fe57f6027ca1e74" }
shared = { git = "https://github.com/codecov/shared", rev = "fd909cc93000489899b583beb14bf795202dfbd8" }
shared = { git = "https://github.com/codecov/shared", rev = "1c6200a3f1a6cdefab730b3f7d731c9a5fa036da" }
7 changes: 4 additions & 3 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading