Skip to content

Commit 7824f79

Browse files
author
d.kovalenko
committed
Merge branch 'master' into D20250413_001--bool_options
2 parents 76abc07 + f2538f5 commit 7824f79

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

src/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
# //////////////////////////////////////////////////////////////////////////////
22
# Postgres Pro. PostgreSQL Configuration Python Library.
33

4+
# fmt: off
45
from .implementation.v00.configuration_std import PostgresConfiguration_Std as PostgresConfiguration
56

67
from .implementation.v00.configuration_std import PostgresConfigurationReader_Std as PostgresConfigurationReader
78

89
from .implementation.v00.configuration_std import PostgresConfigurationWriter_Std as PostgresConfigurationWriter
10+
# fmt: on
911

1012
# //////////////////////////////////////////////////////////////////////////////
1113

1214

1315
__all__ = [
14-
'PostgresConfiguration',
15-
'PostgresConfigurationReader',
16-
'PostgresConfigurationWriter',
16+
"PostgresConfiguration",
17+
"PostgresConfigurationReader",
18+
"PostgresConfigurationWriter",
1719
]
1820

1921

src/core/option/handlers/prepare_get_value/option_handler_to_prepare_get_value__std__int.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ def PrepareGetValue(self, ctx: OptionHandlerCtxToPrepareGetValue) -> any:
2222
assert type(ctx.OptionName) == str
2323
assert ctx.OptionValue is not None
2424

25+
# [2025-04-13] Research
26+
assert type(ctx.OptionValue) == int
27+
2528
return int(ctx.OptionValue)
2629

2730

src/core/option/handlers/prepare_get_value/option_handler_to_prepare_get_value__std__str.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ def PrepareGetValue(self, ctx: OptionHandlerCtxToPrepareGetValue) -> any:
2222
assert type(ctx.OptionName) == str
2323
assert ctx.OptionValue is not None
2424

25+
# [2025-04-13] Research
26+
assert type(ctx.OptionValue) == str
27+
2528
return str(ctx.OptionValue)
2629

2730

tests/TestServices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def CleanTestTmpDirBeforeExit(request: pytest.FixtureRequest):
7676

7777
if not os.path.exists(tmpDir):
7878
return
79-
79+
8080
logging.info("Tmp directory [{0}] is deleting...".format(tmpDir))
8181
shutil.rmtree(tmpDir)
8282
assert not os.path.exists(tmpDir)

tests/implementation/v00/configuration_std/Objects/PostgresConfigurationReader_Base/LoadFileDataContent/test_set001__common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def test_202__option(self, request: pytest.FixtureRequest):
204204
assert fileLineData0.m_Items[0].m_Element.m_Value == 234
205205

206206
# --------------------------------------------------------------------
207-
def test_203__option__with_assign(self, request: pytest.FixtureRequest):
207+
def test_203__option__without_assign(self, request: pytest.FixtureRequest):
208208
assert isinstance(request, pytest.FixtureRequest)
209209

210210
rootTmpDir = TestServices.GetRootTmpDir()

0 commit comments

Comments
 (0)