Skip to content

Commit 9c76da1

Browse files
authored
Update test_client.py
use .append instead of a list addition so as to keep mypy happy that uses_* is declared final
1 parent e0c157c commit 9c76da1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

aptly_api/tests/test_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ def test_instantiate(self) -> None:
3232
def test_api_subdir_get(self, *, rmock: requests_mock.Mocker) -> None:
3333
# register mock:// scheme with urllib.parse
3434
import urllib.parse
35-
urllib.parse.uses_netloc += ['mock']
36-
urllib.parse.uses_relative += ['mock']
37-
urllib.parse.uses_fragment += ['mock']
38-
urllib.parse.uses_params += ['mock']
35+
urllib.parse.uses_netloc.append('mock')
36+
urllib.parse.uses_relative.append('mock')
37+
urllib.parse.uses_fragment.append('mock')
38+
urllib.parse.uses_params.append('mock')
3939

4040
cl = AptlyClient("mock://test/basedir/")
4141
rmock.get("mock://test/basedir/api/test", status_code=200, text='')

0 commit comments

Comments
 (0)