Skip to content

Commit 2fbbc2a

Browse files
committed
Updated tests/unit/models/config/test_postgresql_database_configuration.py
1 parent e637b60 commit 2fbbc2a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/unit/models/config/test_postgresql_database_configuration.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from pathlib import Path
44

55
import pytest
6+
from pytest_subtests import SubTests
67

78
from pydantic import ValidationError
89

@@ -29,7 +30,7 @@ def test_postgresql_database_configuration() -> None:
2930
assert c.ca_cert_path is None
3031

3132

32-
def test_postgresql_database_configuration_port_setting(subtests) -> None:
33+
def test_postgresql_database_configuration_port_setting(subtests: SubTests) -> None:
3334
"""Test the PostgreSQLDatabaseConfiguration model."""
3435
with subtests.test(msg="Correct port value"):
3536
c = PostgreSQLDatabaseConfiguration(
@@ -51,7 +52,7 @@ def test_postgresql_database_configuration_port_setting(subtests) -> None:
5152
)
5253

5354

54-
def test_postgresql_database_configuration_ca_cert_path(subtests) -> None:
55+
def test_postgresql_database_configuration_ca_cert_path(subtests: SubTests) -> None:
5556
"""Test the PostgreSQLDatabaseConfiguration model."""
5657
with subtests.test(msg="Path exists"):
5758
c = PostgreSQLDatabaseConfiguration(

0 commit comments

Comments
 (0)