Skip to content

Commit

Permalink
lots of test coverage, a bit of bugfixes and arguably reasonable styl…
Browse files Browse the repository at this point in the history
…e changes in terms of aesthetics and intelligibility
  • Loading branch information
gabrielfalcao committed Jan 12, 2024
1 parent fb6ac11 commit 6f58d15
Show file tree
Hide file tree
Showing 47 changed files with 2,147 additions and 500 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ docs: html-docs
$(OPEN_COMMAND) docs/build/html/index.html

test tests:
@$(VENV)/bin/pytest --cov=sure --ignore tests/crashes tests
@$(VENV)/bin/pytest --cov=sure tests

# runs main command-line tool
run: | $(LIBEXEC_PATH)
$(LIBEXEC_PATH) --reporter=test tests/crashes || true
$(LIBEXEC_PATH) tests/crashes
$(LIBEXEC_PATH) --special-syntax --with-coverage --cover-branches --cover-module=sure.core --cover-module=sure tests/runner
$(LIBEXEC_PATH) --special-syntax --with-coverage --cover-branches --cover-module=sure --immediate --cover-module=sure --ignore=crashes tests
$(LIBEXEC_PATH) --special-syntax --with-coverage --cover-branches --cover-module=sure --immediate --cover-module=sure --ignore tests/crashes tests

push-release: dist # pushes distribution tarballs of the current version
$(VENV)/bin/twine upload dist/*.tar.gz
Expand Down
18 changes: 13 additions & 5 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ This project adheres to `Semantic Versioning <http://semver.org/>`__.
[v3.0.0]
--------

- Presents better documentation
- Drops support to Python 2 obliterates the ``sure.compat`` module
- Introduces the modules ``sure.doubles``, ``sure.doubles.fakes``,
``sure.doubles.stubs`` and ``sure.doubles.dummies``
- Presents better documentation
- Drops support to Python 2 obliterates the ``sure.compat`` module
- Introduces the modules:
- :mod:`sure.doubles`
- :mod:`sure.doubles.fakes`
- :mod:`sure.doubles.stubs`
- :mod:`sure.doubles.dummies`
- Introduces the classes:
- :class:`sure.doubles.dummies.Anything` (moved from ``sure.Anything``)
- :class:`sure.doubles.dummies.AnythingOfType`
- Sure’s featured synctactic-sugar of injecting/monkey-patching
``.should``, ``.should_not``, et cetera methods into
:class:``object`` and its subclasses is disabled by default and
Expand All @@ -21,7 +27,9 @@ This project adheres to `Semantic Versioning <http://semver.org/>`__.
an instance of :class:``sure.original.AssertionHelper`` rather
than an alias to the class.
- ``AssertionHelper.every_one_is()`` renamed to ``AssertionHelper.every_item_is()``

- Renames :class:`sure.AssertionBuilder` constructor parameters:
- ``with_kwargs`` to ``with_kws``
- ``and_kwargs`` to ``and_kws``

[v2.0.0]
--------
Expand Down
4 changes: 3 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[tool:pytest]
addopts = --ignore tests/crashes -v --maxfail=1 --capture=no --cov=sure.runtime
addopts = --cov=sure --ignore tests/crashes -v --maxfail=1 --capture=no --disable-warnings
testpaths =
tests
filterwarnings =
ignore::RuntimeWarning
ignore::DeprecationWarning
ignore::pytest.PytestCollectionWarning

0 comments on commit 6f58d15

Please sign in to comment.