Fix failing tests
* Fix black formating * Fix mypy tests * Froze jsonschema package to fix fasjson-client issue Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
parent
f79b215a77
commit
b37aba0532
4 changed files with 8 additions and 4 deletions
|
@ -3,6 +3,7 @@ bs4
|
|||
defusedxml
|
||||
fasjson-client
|
||||
fedora-messaging
|
||||
jsonschema<4.0.0 # https://github.com/Yelp/bravado/issues/478 bravado is used by fasjson-client
|
||||
koji
|
||||
requests
|
||||
pyGObject
|
||||
|
|
|
@ -1,2 +1,6 @@
|
|||
pytest
|
||||
pytest-cov
|
||||
|
||||
# Typing libraries
|
||||
types-requests
|
||||
types-toml
|
||||
|
|
|
@ -113,9 +113,7 @@ class CleanRetiredPackages(ToddlerBase):
|
|||
url = f"{self.distgit_api_base_url}/{ns}/{package}"
|
||||
req = self.requests_session.get(url)
|
||||
if not req.ok:
|
||||
_log.info(
|
||||
" %s returned %s -- skipping", url, req.status_code
|
||||
)
|
||||
_log.info(" %s returned %s -- skipping", url, req.status_code)
|
||||
continue
|
||||
data = req.json()
|
||||
|
||||
|
|
|
@ -34,7 +34,8 @@ class TimeoutHTTPAdapter(requests.adapters.HTTPAdapter):
|
|||
self.timeout = timeout
|
||||
else:
|
||||
self.timeout = TIMEOUT_DEFAULT
|
||||
super().__init__(*args, **kwargs)
|
||||
# mypy is confused with the **kwargs
|
||||
super().__init__(*args, **kwargs) # type: ignore
|
||||
|
||||
# mypy doesn't handle **kwargs wrap well
|
||||
def send(self, request: requests.Request, **kwargs: Any) -> requests.Response: # type: ignore
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue