File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ builtins-ignorelist = ["copyright"]
41
41
" PT" , # unittest
42
42
" ARG002" , # mocks
43
43
" BLE001" , # Exception
44
- " PLR0913" , # Too many arguments to function call
44
+ " PLR0913" , # Too many arguments
45
45
" PLR2004" , # Magic value used
46
46
" S101" , # assert
47
47
]
Original file line number Diff line number Diff line change @@ -152,10 +152,13 @@ def test_str(self):
152
152
class CollectionFileItemTests (TestCase ):
153
153
def test_str (self ):
154
154
obj = CollectionFileItem ()
155
- self .assertEqual (str (obj ), "step no. {number} (id: {id})" )
155
+ self .assertEqual (str (obj ), "{collection_file_id}: {number} (id: {id})" )
156
156
157
157
obj .number = 10
158
- self .assertEqual (str (obj ), "step no. 10 (id: {id})" )
158
+ self .assertEqual (str (obj ), "{collection_file_id}:10 (id: {id})" )
159
+
160
+ obj .collection_file_id = 1
161
+ self .assertEqual (str (obj ), "1:10 (id: {id})" )
159
162
160
163
161
164
class DataTests (TestCase ):
@@ -170,10 +173,10 @@ def test_str(self):
170
173
class PackageDataTests (TestCase ):
171
174
def test_str (self ):
172
175
obj = PackageData ()
173
- self .assertEqual (str (obj ), "" )
176
+ self .assertEqual (str (obj ), "{hash_md5} (id: {id}) " )
174
177
175
178
obj .hash_md5 = "1bc29b36f623ba82aaf6724fd3b16718"
176
- self .assertEqual (str (obj ), "1bc29b36f623ba82aaf6724fd3b16718" )
179
+ self .assertEqual (str (obj ), "1bc29b36f623ba82aaf6724fd3b16718 (id: {id}) " )
177
180
178
181
179
182
class ReleaseTests (TestCase ):
You can’t perform that action at this time.
0 commit comments