Skip to content

Conversation

@capcom6
Copy link
Contributor

@capcom6 capcom6 commented Apr 6, 2023

Added:

  • Client.all_page and AsyncClient.all_pages helper methods to retrieve all pages from a paginated response
  • Some tests for BaseClient.parse, Client.all_page, and AsyncClient.all_pages
  • GitHub Actions workflow with pytest

Changed:

  • Parsing responses in BaseClient.parse: BitBucket API v2 doesn't include the errorMessages field in response, instead an error object with a message field is used
  • Use response body as the error message when the body cannot be parsed to JSON
  • Include HTTP code 202 in success codes

capcom6 added 3 commits April 6, 2023 22:54
Fixed: do not install dependencies from requirements.txt

Added: poetry setup step

Added: installation with dev-dependencies

Added: activation of venv

Fixed: venv activation

Added: some tests
Improved: rewrite `all_pages` method
@ingmferrer ingmferrer merged commit 0c9f5f9 into GearPlug:master Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants