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 6.0 to 6.1 #88

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 3 years ago

Bumps kgb from 6.0 to 6.1.

Changelog

Sourced from kgb's changelog.

KGB 6.1 (24-August-2021)

  • Added new SpyOpReturnInOrder and SpyOpRaiseInOrder spy operations.

    SpyOpReturnInOrder takes a list of values to return. Each call made will return the next value from that list. An exception will be raised if any further calls are made once the list is exhausted.

    SpyOpRaiseInOrder is similar, but takes a list of exceptions to raise.

    Examples:

    .. code-block:: python

    spy_on(our_agent.get_identity, op=kgb.SpyOpReturnInOrder([ 'nobody...', 'who?', 'not telling...', ]))

    spy_on(pen.emit_poison, op=kgb.SpyOpRaiseInOrder([ PoisonEmptyError(), Kaboom(), MissingPenError(), ]))

  • SpyOpMatchInOrder and SpyOpMatchAny now accept operations in the expected calls.

    These can be set through an op key, instead of setting call_fake or call_original.

    For example:

    .. code-block:: python

    spy_on(lockbox.enter_code, op=kgb.SpyOpMatchInOrder([ { 'args': (42, 42, 42, 42, 42, 42), 'op': kgb.SpyOpRaise(Kaboom()), 'call_original': True, },

    Any operation can be provided. This also allows for advanced, reusable rule sets by nesting, for example, SpyOpMatchInOrder inside SpyOpMatchAny.

  • UnexpectedCallError now lists the call that was made in the error message.

Commits


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 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)
codeclimate[bot] commented 3 years ago

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

View more on Code Climate.

dependabot[bot] commented 2 years ago

Superseded by #96.