Skip to content
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:

# Ruff replaces black, flake8, autoflake and isort
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.11.4" # make sure this is always consistent with hatch configs
rev: "v0.11.6" # make sure this is always consistent with hatch configs
hooks:
- id: ruff
args: [--config, ./pyproject.toml]
Expand Down
32 changes: 16 additions & 16 deletions src/pytest_databases/docker/oracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,38 +142,38 @@ def oracle_18c_service(

# alias to the latest
@pytest.fixture(autouse=False, scope="session")
def oracle_service(oracle23ai_service: OracleService) -> OracleService:
return oracle23ai_service
def oracle_service(oracle_23ai_service: OracleService) -> OracleService:
return oracle_23ai_service


@pytest.fixture(autouse=False, scope="session")
def oracle_18c_connection(
oracle18c_service: OracleService,
oracle_18c_service: OracleService,
) -> Generator[oracledb.Connection, None, None]:
with oracledb.connect(
host=oracle18c_service.host,
port=oracle18c_service.port,
user=oracle18c_service.user,
service_name=oracle18c_service.service_name,
password=oracle18c_service.password,
host=oracle_18c_service.host,
port=oracle_18c_service.port,
user=oracle_18c_service.user,
service_name=oracle_18c_service.service_name,
password=oracle_18c_service.password,
) as db_connection:
yield db_connection


@pytest.fixture(autouse=False, scope="session")
def oracle_23ai_connection(
oracle23ai_service: OracleService,
oracle_23ai_service: OracleService,
) -> Generator[oracledb.Connection, None, None]:
with oracledb.connect(
host=oracle23ai_service.host,
port=oracle23ai_service.port,
user=oracle23ai_service.user,
service_name=oracle23ai_service.service_name,
password=oracle23ai_service.password,
host=oracle_23ai_service.host,
port=oracle_23ai_service.port,
user=oracle_23ai_service.user,
service_name=oracle_23ai_service.service_name,
password=oracle_23ai_service.password,
) as db_connection:
yield db_connection


@pytest.fixture(autouse=False, scope="session")
def oracle_startup_connection(oracle23ai_startup_connection: oracledb.Connection) -> oracledb.Connection:
return oracle23ai_startup_connection
def oracle_startup_connection(oracle_23ai_startup_connection: oracledb.Connection) -> oracledb.Connection:
return oracle_23ai_startup_connection
Loading
Loading