Decoy

Latest version: v2.1.1

Safety actively analyzes 688823 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

2.1.1

Maintenance release to note official support for Python 3.12

2.1.0

Features

* **spy:** warn if mock used with a missing attribute ([218](https://github.com/mcous/decoy/issues/218)) ([72cefe4](https://github.com/mcous/decoy/commit/72cefe487cab2478a0ab275ea44a6e7244a406fb)), closes [#204](https://github.com/mcous/decoy/issues/204)

2.0.2

Bug Fixes

* **spy:** ensure `__eq__` of rehearsal arg is preferred ([201](https://github.com/mcous/decoy/issues/201)) ([63413d8](https://github.com/mcous/decoy/commit/63413d83f6fcb5de6bae79c3b43b820a28fd24bf))

2.0.1

Bug Fixes

* **warnings:** trigger `reset` warnings at a better stack level ([165](https://github.com/mcous/decoy/issues/165)) ([56863f5](https://github.com/mcous/decoy/commit/56863f527d99850f072d9b1746cb0ebc523e8139))

2.0.0

Refactors

* require mock name, remove deprecated methods, drop Python 3.6 (151) ([1f4e9b3](https://github.com/mcous/decoy/commit/1f4e9b3bb980f7c3574cc78e39487af0e3dcf913))

BREAKING CHANGES

* if you do not specify a `cls` or `func` argument to `decoy.mock()`,
you must specify a `name` parameter.

You can use the following find-and-replace patterns
to fix most tests that start failing due to this change:


find
([a-z_]+?)(: .+?)? = decoy.mock\(\)
replace
$1$2 = decoy.mock(name="$1")



find
([a-z_]+?)(: .+?)? = decoy.mock\(is_async=(.+?)\)
replace
$1$2 = decoy.mock(name="$1", is_async=$3)

1.11.3

Bug Fixes

* **spy:** prefix internal properties with `_decoy` ([150](https://github.com/mcous/decoy/issues/150)) ([6a6868a](https://github.com/mcous/decoy/commit/6a6868a)), closes [#144](https://github.com/mcous/decoy/issues/144)

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.