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

Commit88f9b73

Browse files
TestTestgresCommon is corrected [python problems]
1 parent94da63e commit88f9b73

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

‎tests/test_testgres_common.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
from ..testgresimportNodeStatus
1414
from ..testgresimportIsolationLevel
1515

16-
importtestgres
17-
1816
# New name prevents to collect test-functions in TestgresException and fixes
1917
# the problem with pytest warning.
2018
from ..testgresimportTestgresExceptionastestgres_TestgresException
@@ -1250,7 +1248,7 @@ def release_port(self, dummyPortNumber: int):
12501248

12511249
deftest_port_rereserve_during_node_start(self,node_svc:PostgresNodeService):
12521250
asserttype(node_svc)==PostgresNodeService# noqa: E721
1253-
asserttestgres.PostgresNode._C_MAX_START_ATEMPTS==5
1251+
assertPostgresNode._C_MAX_START_ATEMPTS==5
12541252

12551253
C_COUNT_OF_BAD_PORT_USAGE=3
12561254

@@ -1285,9 +1283,9 @@ def test_port_rereserve_during_node_start(self, node_svc: PostgresNodeService):
12851283

12861284
deftest_port_conflict(self,node_svc:PostgresNodeService):
12871285
asserttype(node_svc)==PostgresNodeService# noqa: E721
1288-
asserttestgres.PostgresNode._C_MAX_START_ATEMPTS>1
1286+
assertPostgresNode._C_MAX_START_ATEMPTS>1
12891287

1290-
C_COUNT_OF_BAD_PORT_USAGE=testgres.PostgresNode._C_MAX_START_ATEMPTS
1288+
C_COUNT_OF_BAD_PORT_USAGE=PostgresNode._C_MAX_START_ATEMPTS
12911289

12921290
with__class__.helper__get_node(node_svc)asnode1:
12931291
node1.init().start()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp