Skip to content

Commit

Permalink
(test)
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Mar 7, 2024
1 parent 81c28a4 commit 4902ae0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/manager/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@
vfolders,
)
from ai.backend.manager.models.base import (
load_table,
metadata,
pgsql_connect_opts,
populate_fixture,
)

# from ai.backend.manager.models.container_registry import ContainerRegistry
from ai.backend.manager.models.scaling_group import ScalingGroupOpts
from ai.backend.manager.models.utils import connect_database
from ai.backend.manager.registry import AgentRegistry
Expand Down Expand Up @@ -415,6 +417,7 @@ def database_fixture(local_config, test_db, database):
Populate the example data as fixtures to the database
and delete them after use.
"""
print("database_fixture!!!ewodkpw")
db_addr = local_config["db"]["addr"]
db_user = local_config["db"]["user"]
db_pass = local_config["db"]["password"]
Expand Down Expand Up @@ -464,7 +467,8 @@ async def clean_fixture():
await conn.execute((users.delete()))
await conn.execute((scaling_groups.delete()))
await conn.execute((domains.delete()))
await conn.execute(((await load_table(engine, "container_registries")).delete()))
# await conn.execute(((await load_table(engine, "container_registries")).delete()))
await conn.execute((metadata.tables.get("container_registries")))
finally:
await engine.dispose()

Expand Down

0 comments on commit 4902ae0

Please sign in to comment.