Print an error message based on http response (T2300)
Details
- Reviewers
vlorentz - Group Reviewers
Reviewers - Commits
- rDTSCNcb5faf6e866a: exceptions: APIError response
rDTSCN1857499820d0: let live_server start directly
Diff Detail
- Repository
- rDTSCN Code scanner
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Build is green
See https://jenkins.softwareheritage.org/job/DTSCN/job/tox/10/ for more details.
Now that swh-scanner has tests, it would be nice if every new feature and bugfix added (or changed) one or more tests.
swh/scanner/exceptions.py | ||
---|---|---|
13–15 ↗ | (On Diff #9942) | nitpick: inconsistent casing, and s/request/requests/ |
20 ↗ | (On Diff #9942) | You can probably use resp.reason instead of status_code_msg[resp.status] |
assert APIError raises when the payload is too large live_server override, only one per session
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DTSCN/job/tox/11/
See console output for more information: https://jenkins.softwareheritage.org/job/DTSCN/job/tox/11/console
Build is green
See https://jenkins.softwareheritage.org/job/DTSCN/job/tox/12/ for more details.
Build is green
See https://jenkins.softwareheritage.org/job/DTSCN/job/tox/13/ for more details.
swh/scanner/tests/conftest.py | ||
---|---|---|
63–66 ↗ | (On Diff #9965) | there is no need of overriding the live_server so i'll remove the no-start-live-server option in pytest.ini |
Build is green
See https://jenkins.softwareheritage.org/job/DTSCN/job/tox/14/ for more details.