From 950865370b1da1f6fd80c39e68549f5436f92fd8 Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Fri, 13 Nov 2026 23:19:09 +0300 Subject: [PATCH] misc: formatting --- .../AddOption/test_set001__common.py | 3 ++- .../SetOptionValue/test_set001__common.py | 20 +++++++++++++++---- .../SetOptionValueItem/test_set001__common.py | 3 ++- .../get_AllFiles/test_set001__common.py | 3 ++- .../AddEmptyLine/test_set001__common.py | 5 ++++- .../AddInclude/test_set001__common.py | 6 ++++-- .../DoWork/test_set001__work.py | 3 +++ 7 files changed, 33 insertions(+), 10 deletions(-) diff --git a/tests/implementation/v00/configuration_std/Objects/PostgresConfiguration/AddOption/test_set001__common.py b/tests/implementation/v00/configuration_std/Objects/PostgresConfiguration/AddOption/test_set001__common.py index f38f9f7..dc35285 100644 --- a/tests/implementation/v00/configuration_std/Objects/PostgresConfiguration/AddOption/test_set001__common.py +++ b/tests/implementation/v00/configuration_std/Objects/PostgresConfiguration/AddOption/test_set001__common.py @@ -114,7 +114,8 @@ def Helper__CheckStateOfCfgWithOneIntOpt( assert fileData is file.m_FileData assert type(fileData) is PgCfgModel__FileData assert fileData.m_Path == os.path.join( - cfg.m_Data.m_DataDir, cfg.C_POSTGRESQL_AUTO_CONF + cfg.m_Data.m_DataDir, + cfg.C_POSTGRESQL_AUTO_CONF, ) assert fileData.m_Parent is cfg.m_Data assert type(fileData.m_Lines) is list diff --git a/tests/implementation/v00/configuration_std/Objects/PostgresConfiguration/SetOptionValue/test_set001__common.py b/tests/implementation/v00/configuration_std/Objects/PostgresConfiguration/SetOptionValue/test_set001__common.py index 9938797..771960e 100644 --- a/tests/implementation/v00/configuration_std/Objects/PostgresConfiguration/SetOptionValue/test_set001__common.py +++ b/tests/implementation/v00/configuration_std/Objects/PostgresConfiguration/SetOptionValue/test_set001__common.py @@ -65,7 +65,12 @@ def test_001__int_opt( assert isinstance(r_option, PostgresConfigurationOption) assert r.Option is r_option # check a cache - __class__.Helper__CheckStateOfCfgWithOneOpt(cfg, r_option, optName, 123) + __class__.Helper__CheckStateOfCfgWithOneOpt( + cfg, + r_option, + optName, + 123, + ) # Amen return @@ -103,7 +108,10 @@ def test_002__port___reasign( # -------------------------------------------------------------------- @staticmethod def Helper__CheckStateOfCfgWithOneOpt( - cfg: PgCfg_Std, opt: PgCfg_Option_Base, optName: str, optValue: typing.Any + cfg: PgCfg_Std, + opt: PgCfg_Option_Base, + optName: str, + optValue: typing.Any, ): assert type(cfg.m_Data) is PgCfgModel__ConfigurationData assert type(opt) is PgCfg_Option_Base @@ -146,7 +154,8 @@ def Helper__CheckStateOfCfgWithOneOpt( assert fileData is file.m_FileData assert type(fileData) is PgCfgModel__FileData assert fileData.m_Path == os.path.join( - cfg.m_Data.m_DataDir, "postgresql.auto.conf" + cfg.m_Data.m_DataDir, + "postgresql.auto.conf", ) assert fileData.m_Parent is cfg.m_Data assert type(fileData.m_Lines) is list @@ -524,7 +533,10 @@ def test_012__one_opt( assert r.Option is r_option # check a cache __class__.Helper__CheckStateOfCfgWithOneOpt( - cfg, r_option, data012[0], data012[2] + cfg, + r_option, + data012[0], + data012[2], ) return diff --git a/tests/implementation/v00/configuration_std/Objects/PostgresConfiguration/SetOptionValueItem/test_set001__common.py b/tests/implementation/v00/configuration_std/Objects/PostgresConfiguration/SetOptionValueItem/test_set001__common.py index 34e3196..48e1022 100644 --- a/tests/implementation/v00/configuration_std/Objects/PostgresConfiguration/SetOptionValueItem/test_set001__common.py +++ b/tests/implementation/v00/configuration_std/Objects/PostgresConfiguration/SetOptionValueItem/test_set001__common.py @@ -97,7 +97,8 @@ def test_002( logging.info( "-------------- iOptValue: {0}, value: [{1}]".format( - iOptValue, optValue + iOptValue, + optValue, ) ) diff --git a/tests/implementation/v00/configuration_std/Objects/PostgresConfiguration/get_AllFiles/test_set001__common.py b/tests/implementation/v00/configuration_std/Objects/PostgresConfiguration/get_AllFiles/test_set001__common.py index 40829ca..9fa4f4b 100644 --- a/tests/implementation/v00/configuration_std/Objects/PostgresConfiguration/get_AllFiles/test_set001__common.py +++ b/tests/implementation/v00/configuration_std/Objects/PostgresConfiguration/get_AllFiles/test_set001__common.py @@ -79,7 +79,8 @@ def test_001( assert len(allFiles1_list) == 1 assert allFiles1_list[0].get_Path() == os.path.join( - rootTmpDir, "postgresql.auto.conf" + rootTmpDir, + "postgresql.auto.conf", ) return diff --git a/tests/implementation/v00/configuration_std/Objects/PostgresConfigurationTopLevelFile/AddEmptyLine/test_set001__common.py b/tests/implementation/v00/configuration_std/Objects/PostgresConfigurationTopLevelFile/AddEmptyLine/test_set001__common.py index a505614..a71b2bd 100644 --- a/tests/implementation/v00/configuration_std/Objects/PostgresConfigurationTopLevelFile/AddEmptyLine/test_set001__common.py +++ b/tests/implementation/v00/configuration_std/Objects/PostgresConfigurationTopLevelFile/AddEmptyLine/test_set001__common.py @@ -41,7 +41,10 @@ def test_001( assert file is not None assert type(file) is PgCfg_TopLevelFile_Base - assert file.get_Path() == os.path.join(rootTmpDir, "postgresql.auto.conf") + assert file.get_Path() == os.path.join( + rootTmpDir, + "postgresql.auto.conf", + ) fileLines = file.get_Lines() assert fileLines is not None diff --git a/tests/implementation/v00/configuration_std/Objects/PostgresConfigurationTopLevelFile/AddInclude/test_set001__common.py b/tests/implementation/v00/configuration_std/Objects/PostgresConfigurationTopLevelFile/AddInclude/test_set001__common.py index 5448d49..b7f1a90 100644 --- a/tests/implementation/v00/configuration_std/Objects/PostgresConfigurationTopLevelFile/AddInclude/test_set001__common.py +++ b/tests/implementation/v00/configuration_std/Objects/PostgresConfigurationTopLevelFile/AddInclude/test_set001__common.py @@ -56,7 +56,8 @@ def test_001( assert isinstance(bihaConfFile, PgCfg_File) assert bihaConfFile.get_Path() == os.path.join( - rootTmpDir, C_BIHA_CONF_FILE_NAME + rootTmpDir, + C_BIHA_CONF_FILE_NAME, ) assert bihaConfFile.get_Configuration() is cfg @@ -162,7 +163,8 @@ def test_002__include_twice( assert bihaConfFile2.get_Parent() is bihaConfFileInclude2 assert bihaConfFile2.get_Path() == os.path.join( - rootTmpDir, C_BIHA_CONF_FILE_NAME + rootTmpDir, + C_BIHA_CONF_FILE_NAME, ) return diff --git a/tests/implementation/v00/configuration_std/Objects/PostgresConfigurationWriter_Base/DoWork/test_set001__work.py b/tests/implementation/v00/configuration_std/Objects/PostgresConfigurationWriter_Base/DoWork/test_set001__work.py index fb4f99d..cbd694f 100644 --- a/tests/implementation/v00/configuration_std/Objects/PostgresConfigurationWriter_Base/DoWork/test_set001__work.py +++ b/tests/implementation/v00/configuration_std/Objects/PostgresConfigurationWriter_Base/DoWork/test_set001__work.py @@ -445,3 +445,6 @@ def Helper__norm_content(text: str) -> str: assert r is not None assert type(r) is str return r + + +# //////////////////////////////////////////////////////////////////////////////