andreroggeri / ynab-sdk-python

Python implementation of the YNAB API (https://api.youneedabudget.com/)
Apache License 2.0
29 stars 11 forks source link

chore(deps): Bump kgb from 3.0 to 5.0 #56

Closed dependabot-preview[bot] closed 4 years ago

dependabot-preview[bot] commented 4 years ago

Bumps kgb from 3.0 to 5.0.

Changelog

Sourced from kgb's changelog.

version 5.0 final (10-April-2020):

  • Added support for Python 3.8.

    Functions with positional-only arguments on Python 3.8 will now work correctly, and the positional-only arguments will factor into any spy matching.

  • Added several new unit test assertion methods:

    • assertHasSpy
    • assertSpyCalled
    • assertSpyNotCalled
    • assertSpyCallCount
    • assertSpyCalledWith
    • assertSpyLastCalledWith
    • assertSpyReturned
    • assertSpyLastReturned
    • assertSpyRaised
    • assertSpyLastRaised
    • assertSpyRaisedMessage
    • assertSpyLastRaisedMessage

    We recommend using these for unit tests instead of checking individual properties of calls, as they'll provide better output and help you find out why spies have gone rogue.

  • Added support for spying on "slippery" functions.

    A slippery function is defined (by us) as a function on an object that is actually a different function every time you access it. In other words, if you were to just reference a slippery function as an attribute two times, you'd end up with two separate copies of that function, each with their own ID.

    This can happen if the "function" is actually some decorator that returns a new function every time it's accessed. A real-world example would be the Python Stripe module's API functions, like stripe.Customer.delete.

    In previous versions of KGB, you wouldn't be able to spy on these functions. With 5.0, you can spy on them just fine by passing owner= when setting up the spy:

    spy_on(myobj.slippery_func,
           owner=myobj)
    
  • Lots of internal changes to help keep the codebase organized and manageable, as Python support increases.

version 4.0 final (30-July-2019):

Commits
  • e2b660e Release kgb 5.0.
  • aca2360 Add new assertion methods for checking spies.
  • 40ec45a Bring the codebase documentation up to modern standards.
  • 12f0ddd Improve readability of the major parts of the KGB code.
  • 697ca2a Add workarounds for spying on slippery functions.
  • a418352 Update the supported Python version range to include Python 3.8.
  • d5de4e1 Move all function introspection/argument generation into new classes.
  • 1f4ebc0 Support Python 3.8+ functions with positional-only arguments.
  • 07e2a49 Bump to 4.0.1 dev.
  • 31958a5 Release kgb 4.0.
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

Dependabot will not automatically merge this PR because it includes a major update to a production dependency.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)
codeclimate[bot] commented 4 years ago

Code Climate has analyzed commit 2f5d5b96 and detected 0 issues on this pull request.

View more on Code Climate.

codecov-commenter commented 4 years ago

Codecov Report

Merging #56 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #56   +/-   ##
=======================================
  Coverage   98.08%   98.08%           
=======================================
  Files          26       26           
  Lines         994      994           
  Branches       55       55           
=======================================
  Hits          975      975           
  Misses         17       17           
  Partials        2        2           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 606bcf8...2f5d5b9. Read the comment docs.