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

Commit1a11fd0

Browse files
author
d.kovalenko
committed
[test] flake8, E721
1 parent3a9f22a commit1a11fd0

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

‎tests/implementation/v00/configuration_std/Options/STD/generic/bool_option/test_set001__common.py‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class TestSet001__Common:
3232
@pytest.fixture(params=sm_OptionNames,ids=[xforxinsm_OptionNames])
3333
defoptionName(self,request:pytest.fixture)->str:
3434
assertisinstance(request,pytest.FixtureRequest)
35-
asserttype(request.param)==str
35+
asserttype(request.param)==str# noqa: E721
3636
returnrequest.param
3737

3838
# --------------------------------------------------------------------
@@ -97,7 +97,7 @@ def __init__(self, set_value: any, get_value: bool):
9797

9898
# --------------------------------------------------------------------
9999
deftest_001__ok(self,optionName:str):
100-
asserttype(optionName)==str
100+
asserttype(optionName)==str# noqa: E721
101101

102102
rootTmpDir=TestServices.GetRootTmpDir()
103103

@@ -107,7 +107,7 @@ def test_001__ok(self, optionName: str):
107107
cfg=PgCfg_Std(rootTmpDir)
108108

109109
data=__class__.sm_Data001[iData]
110-
asserttype(data)==__class__.tagData001
110+
asserttype(data)==__class__.tagData001# noqa: E721
111111

112112
try:
113113
logging.info(
@@ -133,7 +133,7 @@ def test_001__ok(self, optionName: str):
133133
)
134134
)
135135

136-
asserttype(actualValue)==type(data.get_value)
136+
asserttype(actualValue)==type(data.get_value)# noqa: E721
137137
assertactualValue==data.get_value
138138
exceptExceptionase:
139139
logging.error(str(e))
@@ -159,7 +159,7 @@ def __init__(self, set_value: any):
159159

160160
# --------------------------------------------------------------------
161161
deftest_002__cant_convert_value(self,optionName:str):
162-
asserttype(optionName)==str
162+
asserttype(optionName)==str# noqa: E721
163163

164164
rootTmpDir=TestServices.GetRootTmpDir()
165165

@@ -169,7 +169,7 @@ def test_002__cant_convert_value(self, optionName: str):
169169
cfg=PgCfg_Std(rootTmpDir)
170170

171171
data=__class__.sm_Data002[iData]
172-
asserttype(data)==__class__.tagData002
172+
asserttype(data)==__class__.tagData002# noqa: E721
173173

174174
logging.info(
175175
"Set value [{}]: [{}]".format(
@@ -204,7 +204,7 @@ def __init__(self, set_value: any):
204204

205205
# --------------------------------------------------------------------
206206
deftest_003__bad_option_value_type(self,optionName:str):
207-
asserttype(optionName)==str
207+
asserttype(optionName)==str# noqa: E721
208208

209209
rootTmpDir=TestServices.GetRootTmpDir()
210210

@@ -214,7 +214,7 @@ def test_003__bad_option_value_type(self, optionName: str):
214214
cfg=PgCfg_Std(rootTmpDir)
215215

216216
data=__class__.sm_Data003[iData]
217-
asserttype(data)==__class__.tagData003
217+
asserttype(data)==__class__.tagData003# noqa: E721
218218

219219
logging.info(
220220
"Set value [{}]: [{}]".format(
@@ -240,8 +240,8 @@ class tagData101_Assign:
240240
text:str
241241

242242
def__init__(self,sign:str,text:str):
243-
asserttype(sign)==str
244-
asserttype(text)==str
243+
asserttype(sign)==str# noqa: E721
244+
asserttype(text)==str# noqa: E721
245245
self.sign=sign
246246
self.text=text
247247

@@ -265,9 +265,9 @@ class tagData101_Quote:
265265
quote2:str
266266

267267
def__init__(self,sign:str,quote1:str,quote2:str):
268-
asserttype(sign)==str
269-
asserttype(quote1)==str
270-
asserttype(quote2)==str
268+
asserttype(sign)==str# noqa: E721
269+
asserttype(quote1)==str# noqa: E721
270+
asserttype(quote2)==str# noqa: E721
271271
self.sign=sign
272272
self.quote1=quote1
273273
self.quote2=quote2
@@ -337,10 +337,10 @@ def __init__(self, source: any, result: bool):
337337

338338
# --------------------------------------------------------------------
339339
deftest_101__parse_file_line(self,optionName:str):
340-
asserttype(optionName)==str
340+
asserttype(optionName)==str# noqa: E721
341341

342342
rootTmpDir=TestServices.GetRootTmpDir()
343-
asserttype(rootTmpDir)==str
343+
asserttype(rootTmpDir)==str# noqa: E721
344344

345345
foriAssigninrange(len(__class__.sm_Data101_assigns)):
346346
foriQuoteinrange(len(__class__.sm_Data101_quotes)):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp