14
0

34 Commits

Author SHA256 Message Date
ccd31abce4 - Make Django build-requirement conditional and disable by default for
SUSE:SLFO:Main, bsc#1231124

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=60
2024-10-01 11:13:51 +00:00
bda7ca83e5 - Add patch support-python-313.patch:
* Support Python 3.13 AttributeError message changes.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=58
2024-09-26 04:57:18 +00:00
49dfad6286 - update to 8.3.0:
* :class:`ShouldRaise` now supports :class:`ExceptionGroup`.
  * Fixed bug where
    :func:`~testfixtures.comparison.compare_generator` did not
    respect strict=True.
  * Fixed bug in the type annotations for :class:`ShouldRaise`
    and :func:`~testfixtures.comparison.compare_exception`.
  * :class:`LogCapture` will now raise an exception if closed
    while still installed. This can be a source of particularly
    confusing bugs.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=57
2024-06-30 08:18:17 +00:00
5eb319e9e2 - Update to 8.2.0:
* The strict option is now correctly respected when comparing nested
    objects.
  * When comparing datetime.datetime or datetime.time instances, if the fold
    is the only thing that's different, it's now shown in the output.
  * A more detailed exception is now raised when resolving a replacement
    doesn't give what's expected.
  * Replacement of methods on instances is now prevented when strict=True.
  * An exception is now raised when mocking and the original is not in the
    __dict__ of its containing objects.
  * Fix bug where replacement of methods on subclasses failed when using
    Replacer.on_class.
  * Implement strict comparison as an option for datetime.datetime
    and datetime.time.
  * Retire zope.component helpers.
  * Support bytes in popen.MockPopen commands.
  * Allow TempDirectory instances to be traversed as pathlib.Path objects.
  * Use the system default encoding where possible in TempDirectory.
  * Add TempDirectory option to manage current working directory.
  * Allow string class attributes to be replaced with Replacer and friends.
  * Fix nasty bug meaning some Replacer.on_class and Replacer.in_module
    replacements weren't restored.
  * Allow an alternative separator to be used for traversal during replacement
    with Replacer and friends.
  * Officially support Python 3.12.
  * Drop support Python 3.6.
- Add multibuild to break a cycle.
- Drop patch path-comparsion-312.patch, included upstream.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=55
2024-05-08 06:10:52 +00:00
325f37f7e2 Accepting request 1132526 from home:ecsos:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1132526
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=53
2023-12-11 19:10:38 +00:00
0ab8575b0a - Update to 7.2.2:
* Fix bug in support for :class:`os.PathLike` arguments to
    :class:`popen.MockPopen`.
  * Added missing support for :class:`os.PathLike` arguments to
    :class:`popen.MockPopen`.
  * Add ``order_matters`` parameter to :class:`ShouldWarn`.
  * Implement new IDE and static-analysis ways of :doc:`mocking <mocking>`
    including additional parameters to :meth:`~Replacer.replace` along with
    the :any:`replace_on_class`, :any:`replace_in_module` and
    :any:`replace_in_environ` context managers.
- Add patch path-comparsion-312.patch:
  * Compare paths string-wise, due to Python 3.12 changes.
- Switch to autosetup and pyproject macros.
- Remove now unneeded Python 3.6 special-casing.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=51
2023-11-29 01:51:20 +00:00
633db39ac2 Accepting request 1042760 from home:yarunachalam:branches:devel:languages:python
- Update to 7.0.4 
  * Remove py.typed file: neither mypy nor testfixtures are ready for this file to be present.

OBS-URL: https://build.opensuse.org/request/show/1042760
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=49
2022-12-14 10:06:15 +00:00
5152578d55 Clean up SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=47
2022-11-14 07:53:31 +00:00
8b0779023e Accepting request 1034933 from home:yarunachalam:branches:devel:languages:python
- Update to 7.0.3 (3 Nov 2022)
  * Further bugfixes around self-referential datastructures and :func:`compare`.
- Update to 7.0.2 (1 Nov 2022)
  * Reinstate support for self-referential data structures in :func:`compare`. The new implementation provides more clarity about
    what's going on and also ignores more immutable data types.
- Update to 7.0.1 (1 Nov 2022)
  * Remove non-functional support for self-referential data structures in :func:`compare`. The functionality didn't work but did cause
    erroneous reported equality of values in dictionaries that were actually not equal.

OBS-URL: https://build.opensuse.org/request/show/1034933
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=46
2022-11-14 07:52:57 +00:00
4429019c41 - Remove testfixtures-pr167-sybil3.patch, it's included in upstream now.
- Update to 7.0.0
  * Refresh documentation.
  * Add type annotations.
  * Drop support for Python 2. The minimum supported Python version is now 3.6.
  * Sybil 3 is now the minimum supported version if you use
    :class:`~.sybil.FileParser`.
  * Rename and refactor the date and time mocks, they are now :any:`mock_date`,
    :any:`mock_datetime` and :any:`mock_time`. :func:`test_date`,
    :func:`test_datetime` and :func:`test_time` are still present as aliases
    but are now deprecated.
  * Add :meth:`TempDirectory.as_string`, :meth:`TempDirectory.as_path` and
    :meth:`TempDirectory.as_local`. :meth:`TempDirectory.getpath` is now
    deprecated.
  * :class:`TempDirectory` can now be used to wrap existing directories.
  * Fixed a bug where :any:`OutputCapture.captured` returned bytes instead of a
    string with fd=True.
  * The deprecated strict option to :class:`Comparison` has been removed, use
    the partial option instead.
  * The deprecated :meth:`TempDirectory.check`, :meth:`TempDirectory.check_dir`
    and :meth:`TempDirectory.check_all` methods have been removed.
- 6.18.5 (1 Mar 2022)
  * Fix bug in detection of Mock backport.
- 6.18.4 (25 Feb 2022)
  * Ensure compatibility with Sybil 2 and Sybil 3 along with pytest 6 and
    pytest 7.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=43
2022-10-04 15:34:15 +00:00
e7df2a47b0 Accepting request 942771 from home:bnavigator:py310
- Replace testfixtures-pr167-sybil3.patch by
  testfixtures-sybil3-py310.patch -- gh#simplistix/testfixtures#167
- Don't test Django on python36: Django 4 dropped support for
  Python < 3.8

OBS-URL: https://build.opensuse.org/request/show/942771
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=42
2021-12-28 00:49:40 +00:00
f28cb41fe3 Accepting request 941916 from home:bnavigator:branches:devel:languages:python
- Add testfixtures-pr167-sybil3.patch
  * gh#simplistix/testfixtures#167

OBS-URL: https://build.opensuse.org/request/show/941916
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=41
2021-12-21 23:20:08 +00:00
03a239722a Accepting request 923887 from home:bnavigator:branches:devel:languages:python
- update to 6.18.3
  * Fix bug when using :func:`compare` on two regular expressions
    that have very long patterns.
  * Fix bug that meant :class:`LogCapture` didn't preserve or
    provide a clean testing environment for filters.
  * Fix bug when showing differences between mappings found by
    :func:`compare` when mismatching values contained the same
    number more than once.
  * Add support for lazy resolution of prefix and suffix when using
    :func:`compare`.
- Drop appease-django-320.patch merged upstream
- Drop unresolvable Python 2 build

OBS-URL: https://build.opensuse.org/request/show/923887
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=40
2021-10-07 15:52:08 +00:00
0f368f4e9f - update to 6.17.1
- Fix bug where bug where duplicated entries in an ordered but partial
    :class:`SequenceComparison` could result in a failed match.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=38
2021-05-09 17:11:57 +00:00
4e7ef42769 - Add appease-django-320.patch:
* Upstream patch to avoid a test failure with building with Django 3.2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=36
2021-04-28 07:51:06 +00:00
8d5b3bc930 - Skip a test that has some fundamental disagreements with Django 3.2.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=35
2021-04-28 06:51:54 +00:00
36daf44bbf Accepting request 856939 from home:jayvdb:branches:devel:languages:python
- update to v6.17.0

OBS-URL: https://build.opensuse.org/request/show/856939
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=33
2020-12-19 20:54:31 +00:00
13017a3db7 Accepting request 851691 from home:ecsos:server
- update to 6.15.0:
  - Add support to :class:LogCapture for making sure log entries above a specified level have been checked.

OBS-URL: https://build.opensuse.org/request/show/851691
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=31
2020-11-30 16:14:59 +00:00
8fd69a846a - update to 6.14.2:
- Fix bug where ``ignore_eq`` had no effect on nested objects when using :func:`compare`
- remove python383.patch (upstream)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=29
2020-09-16 21:32:00 +00:00
Tomáš Chvátal
d18f942f27 Accepting request 816624 from home:bnavigator:branches:devel:languages:python
- use local source dir for pytest imports (tests are not installed)
  gh#openSUSE/python-rpm-macros#48

OBS-URL: https://build.opensuse.org/request/show/816624
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=27
2020-06-23 16:47:41 +00:00
Tomáš Chvátal
20b5a82685 - Add patch to fix build with python 3.8.3:
* python383.patch
- Update to 6.14.1:
  * Fix bugs in comparison of :func:`~unittest.mock.call` objects where the :func:`repr` of the :func:`~unittest.mock.call` arguments were the same even when their attributes were not.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=25
2020-05-19 10:22:56 +00:00
Tomáš Chvátal
7c8c779822 - Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=23
2020-03-12 08:05:40 +00:00
Tomáš Chvátal
3be1047f71 Accepting request 783805 from home:pgajdos:python
- version update to 6.14.0
  6.14.0 (24 Feb 2020)
  --------------------
  - Add support for non-deterministic logging order when using :meth:`twisted.LogCapture`.
  6.13.1 (20 Feb 2020)
  --------------------
  - Fix for using :func:`compare` to compare two-element :func:`~unittest.mock.call`
    objects.
  6.13.0 (18 Feb 2020)
  --------------------
  - Allow any attributes that need to be ignored to be specified directly when calling
    :func:`~testfixtures.comparison.compare_object`. This is handy when writing
    comparers for :func:`compare`.
  6.12.1 (16 Feb 2020)
  --------------------
  - Fix a bug that occured when using :func:`compare` to compare a string with a
    slotted object that had the same :func:`repr` as the string.
  6.12.0 (6 Feb 2020)
  -------------------
  - Add support for ``universal_newlines``, ``text``, ``encoding`` and ``errors`` to
    :class:`popen.MockPopen`, but only for Python 3.
  6.11.0 (29 Jan 2020)
  --------------------
  - :class:`decimal.Decimal` now has better representation when :func:`compare` displays a failed
    comparison, particularly on Python 2.
  - Add support to :func:`compare` for explicitly naming objects to be compared as ``x`` and ``y``.
    This allows symmetry with the ``x_label`` and ``y_label`` parameters that are now documented.
  - Restore ability for :class:`Comparison` to compare properties and methods, although these uses
    are not recommended.
  6.10.3 (22 Nov 2019)

OBS-URL: https://build.opensuse.org/request/show/783805
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=22
2020-03-11 12:48:53 +00:00
Tomáš Chvátal
fcff314366 - Update to 6.10.0:
* Better feedback where objects do not :func:`compare` equal but do have the same representation.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=20
2019-07-22 12:43:39 +00:00
Tomáš Chvátal
1b2d006e22 Accepting request 710320 from home:pgajdos
- version update to 6.9.0
  - Fix deprecation warning relating to :func:`getargspec`.
  - Improve :doc:`mocking <mocking>` docs.
  - Add ``strip_whitespace`` option to :class:`OutputCapture`.
  - When ``separate`` is used with :class:`OutputCapture`, differences in ``stdout` and ``stderr``
    are now given in the same :class:`AssertionError`.
  - :class:`ShouldRaise` no longer catches exceptions that are not of the required type.
  - Fixed a problem that resulted in unhelpful :func:`compare` failures when
    :func:`~unittest.mock.call` was involved and Python 3.6.7 was used.

OBS-URL: https://build.opensuse.org/request/show/710320
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=18
2019-06-17 10:31:24 +00:00
Tomáš Chvátal
ba624ef788 Accepting request 704378 from home:pgajdos
- version update to 6.8.2
  * Fix handling of the latest releases of the :mod:`mock` backport.
  * Fix bogus import in :class:`OutputCapture`.
  * Allow :class:`OutputCapture` to capture the underlying file descriptors for
    :attr:`sys.stdout` and :attr:`sys.stderr`.
  * Silence :class:`DeprecationWarning` relating to ``collections.abc`` on
    Python 3.7.

OBS-URL: https://build.opensuse.org/request/show/704378
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=16
2019-05-21 08:26:53 +00:00
Tomáš Chvátal
7eed7fb1bb Accepting request 695796 from home:mcalabkova:branches:devel:languages:python
- update to version 6.7.0
  * Add :meth:`twisted.LogCapture.raise_logged_failure` debugging 
    helper.

OBS-URL: https://build.opensuse.org/request/show/695796
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=14
2019-04-21 11:18:26 +00:00
Tomáš Chvátal
137f632484 Accepting request 688908 from home:jayvdb:coala:test-rig
- Add docs/*.txt to %docs
- Remove tests from the runtime package
- Update to v6.6.2

OBS-URL: https://build.opensuse.org/request/show/688908
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=12
2019-03-28 08:41:18 +00:00
Tomáš Chvátal
365428657f Accepting request 674717 from home:jayvdb:coala:test-rig
- Update to version 6.5.0
  See changes.rst for list of changes since version 5.3.1
- Remove many unnecessary build dependencies
- Activate tests
- Add Suggests for Django, Twisted, sybil and zope.component

OBS-URL: https://build.opensuse.org/request/show/674717
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=10
2019-02-14 08:31:46 +00:00
Todd R
7acf84c0ba Accepting request 671947 from home:jayvdb:coala
- Remove unnecessary build dependencies

OBS-URL: https://build.opensuse.org/request/show/671947
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=8
2019-02-05 18:16:45 +00:00
0ab4bd669b Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=6
2018-12-04 17:24:21 +00:00
83c1dfe6f5 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=5
2018-12-04 14:09:00 +00:00
Tomáš Chvátal
d2629e641c Accepting request 561825 from home:alarrosa:branches:devel:languages:python
- Update to version 5.3.1
  * Fix missing support for the start_new_session parameter to
    ~testfixtures.popen.MockPopen.

- Update to version 5.3.0 
  * Add pytest traceback hiding for TempDirectory.compare.
  * Add warnings that log_capture, tempdir and replace are not
    currently compatible with pytest's fixtures mechanism.
  * Better support for stdout or stderr *not* being set to PIPE
    when using testfixtures.popen.MockPopen.
  * Add support to testfixtures.popen.MockPopen for
    using subprocess.Popen as a context manager in Python 3.
  * Add support to testfixtures.popen.MockPopen for stderr=STDOUT.
  * Work done on  testfixtures.popen.MockPopen.

OBS-URL: https://build.opensuse.org/request/show/561825
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=3
2018-01-05 10:23:12 +00:00
Jan Matejek
9fa4bd66c0 Accepting request 533483 from home:Simmphonie:python
- Initial release version 5.2.0

OBS-URL: https://build.opensuse.org/request/show/533483
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=1
2017-10-12 13:48:30 +00:00