Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7824f79

Browse files
author
d.kovalenko
committed
Merge branch 'master' into D20250413_001--bool_options
2 parents76abc07 +f2538f5 commit7824f79

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_stdimportPostgresConfiguration_StdasPostgresConfiguration
56

67
from .implementation.v00.configuration_stdimportPostgresConfigurationReader_StdasPostgresConfigurationReader
78

89
from .implementation.v00.configuration_stdimportPostgresConfigurationWriter_StdasPostgresConfigurationWriter
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
asserttype(ctx.OptionName)==str
2323
assertctx.OptionValueisnotNone
2424

25+
# [2025-04-13] Research
26+
asserttype(ctx.OptionValue)==int
27+
2528
returnint(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
asserttype(ctx.OptionName)==str
2323
assertctx.OptionValueisnotNone
2424

25+
# [2025-04-13] Research
26+
asserttype(ctx.OptionValue)==str
27+
2528
returnstr(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
ifnotos.path.exists(tmpDir):
7878
return
79-
79+
8080
logging.info("Tmp directory [{0}] is deleting...".format(tmpDir))
8181
shutil.rmtree(tmpDir)
8282
assertnotos.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
assertfileLineData0.m_Items[0].m_Element.m_Value==234
205205

206206
# --------------------------------------------------------------------
207-
deftest_203__option__with_assign(self,request:pytest.FixtureRequest):
207+
deftest_203__option__without_assign(self,request:pytest.FixtureRequest):
208208
assertisinstance(request,pytest.FixtureRequest)
209209

210210
rootTmpDir=TestServices.GetRootTmpDir()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp