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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def test_002(

logging.info(
"-------------- iOptValue: {0}, value: [{1}]".format(
iOptValue, optValue
iOptValue,
optValue,
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,3 +445,6 @@ def Helper__norm_content(text: str) -> str:
assert r is not None
assert type(r) is str
return r


# //////////////////////////////////////////////////////////////////////////////
Loading