./devel/py-flexmock, Mock/Stub/Spy library for Python

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.12.1, Package name: py311-flexmock-0.12.1, Maintainer: pkgsrc-users

flexmock is a testing library for Python that makes it easy to create mocks,
stubs and fakes.

The API is inspired by a Ruby library of the same name, but Python flexmock is
not a clone of the Ruby version. It omits a number of redundancies in the Ruby
flexmock API, alters some defaults, and introduces a number of Python-only
features.

flexmock's design focuses on simplicity and intuitiveness. This means that the
API is as lean as possible, though a few convenient short-hand methods are
provided to aid brevity and readability.

flexmock declarations are structured to read more like English sentences than
API calls, and it is possible to chain them together in any order to achieve
high degree of expressiveness in a single line of code.

In addition, flexmock integrates seamlessly with all major test runners to
reduce even more mock-related boilerplate code.


Required to run:
[devel/py-setuptools] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 51.528 KB

Version history: (Expand)


CVS history: (Expand)


   2024-04-02 20:25:03 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-flexmock: updated to 0.12.1

Release 0.12.1

Fixed

- Flexmock Pytest plugin entrypoint missing from `setup.py`.

Release 0.12.0

Added

- Add Python 3.12 and 3.13 support.

Changed

- Add tox.ini to sdist to make the downstream testing easier.

Removed

- Drop Python 3.6 and 3.7 support.
- Drop Pytest 5.x support.

Fixed

- Fixed the pytest integration by switching from wrapping of the test runner to
 the pytest plugin system.
   2022-11-29 22:14:10 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-flexmock: updated to 0.11.3

Release 0.11.3

Added

- Add PEP 561 `py.typed` marker file.

Changed

- Remove documentation and test files from wheels build.
- Re-organize unit tests.

Documentation

- Add a warning about the usage of `.new_instances()` method in the documentation.

Release 0.11.2

Fixed

- Fix subunit testrunner integration is broken.
- Fix: TeamCity (PyCharm) testrunner integration is broken.

Infrastructure

- Run tests with testtools, subunit, TeamCity, and doctest testrunners using tox.

Documentation

- Test flexmock API examples using doctest.
- Re-add Sphinx support for generating man pages.
- Fix 404 page not loading CSS and Javascript resources in documentation.
- Small fixes to documentation.

Release 0.11.1

Fixed

- Fix Zope testrunner integration is broken.

Infrastructure

- Run tests with Zope testrunner using tox.

Release 0.11.0

Added

- Add Python 3.8, 3.9, 3.10, and 3.11 support.
- Add type annotations.

Changed

- **BREAKING CHANGE**: Flexmock needs to be imported explicitly using `from \ 
flexmock import flexmock`.
 The hack that allowed flexmock to be imported directly using `import flexmock` \ 
did not work well with static analysis tools.
- Many error messages have been improved.
- Undocumented methods `Expectation.reset`, `Expectation.verify`, and \ 
`Expectation.match_args` that were unintentionally left public are now private \ 
methods.
- Undocumented attributes in `Mock` and `Expectation` are now private. These \ 
attributes were never meant to be accessed directly.

Removed

- Drop Python 2.7, 3.4, 3.5 support.
- Drop Pytest 4.x support.
- Remove unittest2 and nose integrations. unittest2 and nose are not maintained \ 
anymore.
- **BREAKING CHANGE**: Removed support for calling `once`, `twice`, `never`, and \ 
`mock` methods
 without parentheses. This allows code completion and static analysis to work \ 
with these methods.

Fixed

- Fix `should_call` is broken if called on a fake object.
- Fix `and_raise` allows invalid arguments for an exception.

Infrastructure

- Run linters and tests using Github Actions.
- Add coverage reporting using Codecov.

Documentation

- Add contribution documentation.
- Use Mkdocs instead of Sphinx to build the documentation.
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016)
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:
devel/py-traitlets/distinfo

The following distfiles were unfetchable (note: some may be only fetched
conditionally):

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
   2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017)
Log message:
devel: Remove SHA1 hashes for distfiles
   2021-10-06 13:07:43 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-flexmock: updated to 0.10.10

Release 0.10.10
- Fix AttributeError raised when mocking a proxied object.
   2021-09-09 10:01:52 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-flexmock: updated to 0.10.9

Release 0.10.9

Fixed
- Fix flexmock not mocking methods properly on derived classes.

Release 0.10.8

Fixed
- Fix ``with_args`` not working built-in functions.

Release 0.10.7

Fixed
- Fix ``with_args`` not working built-in methods.
- Fix previous pytest ``--durations`` fix not working.

Release 0.10.6

Fixed
- Fix flexmock broken with Pytest 4 & 5.
- Fix new_instances method not working with Python 2.7.
- Fix multiple expectations for the same classmethod are not matched.
   2021-07-21 08:43:58 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-flexmock: updated to 0.10.5

Release 0.10.5

Added
- Improve error message on unmatched method signature expectation.

Fixed
- Fix using ``should_call`` passes wrong ``runtime_self``.
- Fix pytest ``--durations`` flag when flexmock is installed.