From ba285aafc395e65d71a2b5369a742c007ffbadc28a699dbed99290dab63d4bff Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 26 Feb 2021 21:33:31 +0000 Subject: [PATCH] Accepting request 875532 from home:bnavigator:branches:devel:languages:python:pytest - update to 4.0.2 * Fix a bug that prevents using comments in the Examples: section. (youtux) - provide the correct u-a conrolled command to the tests - Skip failing tests: test_at_scenario and test_step_trace OBS-URL: https://build.opensuse.org/request/show/875532 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-bdd?expand=0&rev=19 --- pytest-bdd-4.0.1.tar.gz | 3 --- pytest-bdd-4.0.2.tar.gz | 3 +++ python-pytest-bdd.changes | 9 +++++++++ python-pytest-bdd.spec | 15 ++++++++++----- 4 files changed, 22 insertions(+), 8 deletions(-) delete mode 100644 pytest-bdd-4.0.1.tar.gz create mode 100644 pytest-bdd-4.0.2.tar.gz diff --git a/pytest-bdd-4.0.1.tar.gz b/pytest-bdd-4.0.1.tar.gz deleted file mode 100644 index cf4447c..0000000 --- a/pytest-bdd-4.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d25656931b834782209b61a7818b0b7c1ebcd12f967870865df5b5edd4418b34 -size 60801 diff --git a/pytest-bdd-4.0.2.tar.gz b/pytest-bdd-4.0.2.tar.gz new file mode 100644 index 0000000..cd468ac --- /dev/null +++ b/pytest-bdd-4.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:592021934b78837f95afb49faa0dd4eb59d4fc2e5a1fbbe72a57ef7318b10207 +size 60817 diff --git a/python-pytest-bdd.changes b/python-pytest-bdd.changes index 9457677..f9b2dc4 100644 --- a/python-pytest-bdd.changes +++ b/python-pytest-bdd.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri Feb 26 20:50:41 UTC 2021 - Ben Greiner + +- update to 4.0.2 + * Fix a bug that prevents using comments in the Examples: + section. (youtux) +- provide the correct u-a conrolled command to the tests +- Skip failing tests: test_at_scenario and test_step_trace + ------------------------------------------------------------------- Wed Sep 23 09:31:18 UTC 2020 - Ondřej Súkup diff --git a/python-pytest-bdd.spec b/python-pytest-bdd.spec index e09100c..c7b0a50 100644 --- a/python-pytest-bdd.spec +++ b/python-pytest-bdd.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-bdd # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-pytest-bdd -Version: 4.0.1 +Version: 4.0.2 Release: 0 Summary: BDD for pytest License: MIT @@ -80,9 +80,14 @@ sed -i '/tox/d' setup.py %check export LANG=en_US.UTF-8 -export PYTHONDONTWRITEBYTECODE=1 -# test_generate_with_quotes and test_unicode_characters require ptyest-bdd binary which we handle with u-a -%pytest -k 'not test_generate_with_quotes and not test_unicode_characters' +%{python_expand # provide the u-a controlled command in PATH +mkdir -p build/testbin +ln -s %{buildroot}%{_bindir}/pytest-bdd-%{$python_bin_suffix} build/testbin/pytest-bdd +} +export PATH=$PWD/build/testbin:$PATH +# test_at_in_scenario: the result footer looks slightly different +# test_step_trace: unraisable exception in the obs environment +%pytest -k "not (test_at_in_scenario or test_step_trace)" -ra %post %python_install_alternative pytest-bdd