2024-11-12 21:12:40 +00:00
committed by Git OBS Bridge
commit 6f29e6da9a
5 changed files with 105 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:979a7849e758ed1d6ba17056533c75ac901f30a420d8229342bf4c5043cb86fb
size 24993

View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue Nov 12 13:20:45 UTC 2024 - Martin Hauke <mardnh@gmx.de>
- Initial package, version 0.13.2

View File

@@ -0,0 +1,74 @@
#
# spec file for package python-pytest-recording
#
# 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.2
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-rpm-macros
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
# SECTION test requirements
BuildRequires: %{python_module pytest >= 3.5.0}
BuildRequires: %{python_module vcrpy >= 2.0.1}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module pytest-httpbin}
BuildRequires: %{python_module pytest-mock}
# /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