forked from pool/python-pytest-recording
- update to 0.13.4:
* AttributeError on Windows. `#172`_ OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-recording?expand=0&rev=5
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
pytest-recording-0.13.3.tar.gz
Normal file
3
pytest-recording-0.13.3.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b15eac5aa24bf04d166fba85809029eee74d62113952ba3f132aa2eb760cb157
|
||||
size 25920
|
||||
3
pytest-recording-0.13.4.tar.gz
Normal file
3
pytest-recording-0.13.4.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c86e695e95acbe0ad2576410397950193a78de65be0c91c98f4ba7fa8e705a3e
|
||||
size 26339
|
||||
16
python-pytest-recording.changes
Normal file
16
python-pytest-recording.changes
Normal file
@@ -0,0 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 29 21:25:22 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 0.13.4:
|
||||
* AttributeError on Windows. `#172`_
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 28 16:47:45 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 0.13.3:
|
||||
* Limit generated cassette names to prevent OSError. `#172`_
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 12 13:20:45 UTC 2024 - Martin Hauke <mardnh@gmx.de>
|
||||
|
||||
- Initial package, version 0.13.2
|
||||
75
python-pytest-recording.spec
Normal file
75
python-pytest-recording.spec
Normal file
@@ -0,0 +1,75 @@
|
||||
#
|
||||
# spec file for package python-pytest-recording
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
# Copyright (c) 2024, Martin Hauke <mardnh@gmx.de>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: python-pytest-recording
|
||||
Version: 0.13.4
|
||||
Release: 0
|
||||
Summary: A pytest plugin that allows you recording of network interactions via VCRpy
|
||||
License: MIT
|
||||
URL: https://github.com/kiwicom/pytest-recording
|
||||
Source: https://github.com/kiwicom/pytest-recording/archive/refs/tags/v%{version}.tar.gz#/pytest-recording-%{version}.tar.gz
|
||||
BuildRequires: %{python_module hatchling}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest >= 3.5.0}
|
||||
BuildRequires: %{python_module pytest-httpbin}
|
||||
BuildRequires: %{python_module pytest-mock}
|
||||
BuildRequires: %{python_module requests}
|
||||
BuildRequires: %{python_module vcrpy >= 2.0.1}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
Requires: python-pytest >= 3.5.0
|
||||
Requires: python-vcrpy >= 2.0.1
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
A pytest plugin that records network interactions in your tests
|
||||
via VCR.py.
|
||||
|
||||
Features
|
||||
* Straightforward `pytest.mark.vcr`, that reflects
|
||||
`VCR.use_cassettes` API;
|
||||
* Combining multiple VCR cassettes
|
||||
* Network access blocking;
|
||||
* The `rewrite` recording mode that rewrites cassettes
|
||||
from scratch.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n pytest-recording-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# skip tests that require a network connection
|
||||
%pytest -k "not (test_block_network_with_allowed_hosts or test_block_network_with_allowed_hosts or test_block_network_with_allowed_hosts or test_blocked)"
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python_sitelib}/pytest_recording
|
||||
%{python_sitelib}/pytest_recording-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user