Skip to content

Commit

Permalink
dropdb, createdb
Browse files Browse the repository at this point in the history
  • Loading branch information
ychiucco committed Oct 22, 2024
1 parent cff9577 commit 7405f6f
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions tests/fixtures_testserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from pathlib import Path
from typing import Optional

import fractal_server
import httpx
import pytest

Expand Down Expand Up @@ -98,17 +97,14 @@ def testserver(tester):
if server_process.poll() is None:
os.kill(server_process.pid, signal.SIGTERM)
server_process.wait()
alembic_ini = Path(fractal_server.__path__[0]) / "alembic.ini"
subprocess.run(
[
"poetry",
"run",
"alembic",
"--config",
alembic_ini.as_posix(),
"downgrade",
"base",
],
["dropdb", "fractal_client_test"],
check=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
subprocess.run(
["createdb", "fractal_client_test"],
check=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
Expand Down

0 comments on commit 7405f6f

Please sign in to comment.