@@ -28,6 +28,7 @@ class TestConsistentSnapshot(unittest.TestCase):
28
28
are formed for each combination"""
29
29
30
30
def setUp (self ) -> None :
31
+ # pylint: disable=consider-using-with
31
32
self .temp_dir = tempfile .TemporaryDirectory ()
32
33
self .metadata_dir = os .path .join (self .temp_dir .name , "metadata" )
33
34
self .targets_dir = os .path .join (self .temp_dir .name , "targets" )
@@ -117,6 +118,7 @@ def test_top_level_roles_update(self, test_case_data: Dict[str, Any]):
117
118
sim = self ._init_repo (consistent_snapshot )
118
119
updater = self ._init_updater (sim )
119
120
121
+ # pylint: disable=protected-access
120
122
with patch .object (
121
123
sim , "_fetch_metadata" , wraps = sim ._fetch_metadata
122
124
) as wrapped_fetch :
@@ -159,6 +161,7 @@ def test_delegated_roles_update(self, test_case_data: Dict[str, Any]):
159
161
updater = self ._init_updater (sim )
160
162
updater .refresh ()
161
163
164
+ # pylint: disable=protected-access
162
165
with patch .object (
163
166
sim , "_fetch_metadata" , wraps = sim ._fetch_metadata
164
167
) as wrapped_fetch :
@@ -210,6 +213,7 @@ def test_download_targets(self, test_case_data: Dict[str, Any]):
210
213
updater .config .prefix_targets_with_hash = prefix_targets_with_hash
211
214
updater .refresh ()
212
215
216
+ # pylint: disable=protected-access
213
217
with patch .object (
214
218
sim , "_fetch_target" , wraps = sim ._fetch_target
215
219
) as wrapped_fetch_target :
0 commit comments