Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 177f17b881 | |||
| 64a9ee31d9 | |||
| 801bd174b6 | |||
| 6891715ab1 | |||
| ac0d303c07 | |||
| 99362fb45a |
3
behave-1.2.6.tar.gz
Normal file
3
behave-1.2.6.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:b9662327aa53294c1351b0a9c369093ccec1d21026f050c3bd9b3e5cccf81a86
|
||||||
|
size 701696
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2b8f4b64ed2ea756a5a2a73e23defc1c4631e9e724c499e46661778453ebaf51
|
|
||||||
size 892639
|
|
||||||
13
no2to3.patch
Normal file
13
no2to3.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Index: behave-1.2.6/setup.py
|
||||||
|
===================================================================
|
||||||
|
--- behave-1.2.6.orig/setup.py
|
||||||
|
+++ behave-1.2.6/setup.py
|
||||||
|
@@ -100,8 +100,6 @@ setup(
|
||||||
|
"pylint",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
- # MAYBE-DISABLE: use_2to3
|
||||||
|
- use_2to3= bool(python_version >= 3.0),
|
||||||
|
license="BSD",
|
||||||
|
classifiers=[
|
||||||
|
"Development Status :: 4 - Beta",
|
||||||
98
python-behave-fix-tests.patch
Normal file
98
python-behave-fix-tests.patch
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
Index: behave-1.2.6/tests/unit/test_capture.py
|
||||||
|
===================================================================
|
||||||
|
--- behave-1.2.6.orig/tests/unit/test_capture.py
|
||||||
|
+++ behave-1.2.6/tests/unit/test_capture.py
|
||||||
|
@@ -20,6 +20,8 @@ def create_capture_controller(config=Non
|
||||||
|
config.log_capture = True
|
||||||
|
config.logging_filter = None
|
||||||
|
config.logging_level = "INFO"
|
||||||
|
+ config.logging_format = "%(levelname)s:%(name)s:%(message)s"
|
||||||
|
+ config.logging_datefmt = None
|
||||||
|
return CaptureController(config)
|
||||||
|
|
||||||
|
def setup_capture_controller(capture_controller, context=None):
|
||||||
|
Index: behave-1.2.6/tests/issues/test_issue0458.py
|
||||||
|
===================================================================
|
||||||
|
--- behave-1.2.6.orig/tests/issues/test_issue0458.py
|
||||||
|
+++ behave-1.2.6/tests/issues/test_issue0458.py
|
||||||
|
@@ -48,7 +48,7 @@ def test_issue(exception_class, message)
|
||||||
|
raise_exception(exception_class, message)
|
||||||
|
|
||||||
|
# -- SHOULD NOT RAISE EXCEPTION HERE:
|
||||||
|
- text = _text(e)
|
||||||
|
+ text = _text(e.value)
|
||||||
|
# -- DIAGNOSTICS:
|
||||||
|
print(u"text"+ text)
|
||||||
|
print(u"exception: %s" % e)
|
||||||
|
Index: behave-1.2.6/tests/unit/test_context_cleanups.py
|
||||||
|
===================================================================
|
||||||
|
--- behave-1.2.6.orig/tests/unit/test_context_cleanups.py
|
||||||
|
+++ behave-1.2.6/tests/unit/test_context_cleanups.py
|
||||||
|
@@ -153,7 +153,7 @@ class TestContextCleanup(object):
|
||||||
|
with pytest.raises(AssertionError) as e:
|
||||||
|
with scoped_context_layer(context):
|
||||||
|
context.add_cleanup(non_callable)
|
||||||
|
- assert "REQUIRES: callable(cleanup_func)" in str(e)
|
||||||
|
+ assert "REQUIRES: callable(cleanup_func)" in str(e.value)
|
||||||
|
|
||||||
|
def test_on_cleanup_error__prints_error_by_default(self, capsys):
|
||||||
|
def bad_cleanup_func():
|
||||||
|
Index: behave-1.2.6/tests/unit/test_textutil.py
|
||||||
|
===================================================================
|
||||||
|
--- behave-1.2.6.orig/tests/unit/test_textutil.py
|
||||||
|
+++ behave-1.2.6/tests/unit/test_textutil.py
|
||||||
|
@@ -212,9 +212,11 @@ class TestObjectToTextConversion(object)
|
||||||
|
with pytest.raises(AssertionError) as e:
|
||||||
|
assert False, message
|
||||||
|
|
||||||
|
- text2 = text(e)
|
||||||
|
- expected = u"AssertionError: %s" % message
|
||||||
|
- assert text2.endswith(expected)
|
||||||
|
+ # -- FOR: pytest < 5.0
|
||||||
|
+ # expected = u"AssertionError: %s" % message
|
||||||
|
+ text2 = text(e.value)
|
||||||
|
+ assert u"AssertionError" in text(e)
|
||||||
|
+ assert message in text2, "OOPS: text=%r" % text2
|
||||||
|
|
||||||
|
@requires_python2
|
||||||
|
@pytest.mark.parametrize("message", [
|
||||||
|
@@ -226,9 +228,11 @@ class TestObjectToTextConversion(object)
|
||||||
|
with pytest.raises(AssertionError) as e:
|
||||||
|
assert False, bytes_message
|
||||||
|
|
||||||
|
- text2 = text(e)
|
||||||
|
- expected = u"AssertionError: %s" % message
|
||||||
|
- assert text2.endswith(expected)
|
||||||
|
+ # -- FOR: pytest < 5.0
|
||||||
|
+ # expected = u"AssertionError: %s" % message
|
||||||
|
+ text2 = text(e.value)
|
||||||
|
+ assert message in text2, "OOPS: text=%r" % text2
|
||||||
|
+
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("exception_class, message", [
|
||||||
|
(AssertionError, u"Ärgernis"),
|
||||||
|
@@ -240,10 +244,13 @@ class TestObjectToTextConversion(object)
|
||||||
|
with pytest.raises(exception_class) as e:
|
||||||
|
raise exception_class(message)
|
||||||
|
|
||||||
|
- text2 = text(e)
|
||||||
|
+ # -- FOR: pytest < 5.0
|
||||||
|
+ # expected = u"AssertionError: %s" % message
|
||||||
|
+ text2 = text(e.value)
|
||||||
|
expected = u"%s: %s" % (exception_class.__name__, message)
|
||||||
|
assert isinstance(text2, six.text_type)
|
||||||
|
- assert text2.endswith(expected)
|
||||||
|
+ assert exception_class.__name__ in str(e)
|
||||||
|
+ assert message in text2, "OOPS: text=%r" % text2
|
||||||
|
|
||||||
|
@requires_python2
|
||||||
|
@pytest.mark.parametrize("exception_class, message", [
|
||||||
|
@@ -257,7 +264,7 @@ class TestObjectToTextConversion(object)
|
||||||
|
with pytest.raises(exception_class) as e:
|
||||||
|
raise exception_class(bytes_message)
|
||||||
|
|
||||||
|
- text2 = text(e)
|
||||||
|
+ text2 = text(e.value)
|
||||||
|
unicode_message = bytes_message.decode(self.ENCODING)
|
||||||
|
expected = u"%s: %s" % (exception_class.__name__, unicode_message)
|
||||||
|
assert isinstance(text2, six.text_type)
|
||||||
@@ -1,220 +1,143 @@
|
|||||||
Index: behave-1.3.3/tests/api/_test_async_step35.py
|
diff -upr behave-1.2.6.orig/test/reporters/test_summary.py behave-1.2.6/test/reporters/test_summary.py
|
||||||
===================================================================
|
--- behave-1.2.6.orig/test/reporters/test_summary.py 2022-05-17 16:51:03.364286060 +0200
|
||||||
--- behave-1.3.3.orig/tests/api/_test_async_step35.py
|
+++ behave-1.2.6/test/reporters/test_summary.py 2022-05-17 16:51:03.432286489 +0200
|
||||||
+++ behave-1.3.3/tests/api/_test_async_step35.py
|
@@ -2,7 +2,7 @@
|
||||||
@@ -24,7 +24,7 @@ from platform import python_implementati
|
|
||||||
|
from __future__ import absolute_import, division
|
||||||
import sys
|
import sys
|
||||||
|
-from mock import Mock, patch
|
||||||
from hamcrest import assert_that, close_to
|
+from unittest.mock import Mock, patch
|
||||||
-from mock import Mock
|
from nose.tools import *
|
||||||
+from unittest.mock import Mock
|
from behave.model import ScenarioOutline, Scenario
|
||||||
import pytest
|
from behave.model_core import Status
|
||||||
|
diff -upr behave-1.2.6.orig/test/test_formatter.py behave-1.2.6/test/test_formatter.py
|
||||||
from behave._stepimport import use_step_import_modules, SimpleStepContainer
|
--- behave-1.2.6.orig/test/test_formatter.py 2022-05-17 16:51:03.364286060 +0200
|
||||||
Index: behave-1.3.3/tests/unit/test_context_cleanups.py
|
+++ behave-1.2.6/test/test_formatter.py 2022-05-17 16:51:03.432286489 +0200
|
||||||
===================================================================
|
|
||||||
--- behave-1.3.3.orig/tests/unit/test_context_cleanups.py
|
|
||||||
+++ behave-1.3.3/tests/unit/test_context_cleanups.py
|
|
||||||
@@ -13,7 +13,7 @@ OPEN ISSUES:
|
|
||||||
from __future__ import print_function
|
|
||||||
from behave.configuration import Configuration
|
|
||||||
from behave.runner import Context, Runner, scoped_context_layer
|
|
||||||
-from mock import Mock
|
|
||||||
+from unittest.mock import Mock
|
|
||||||
import pytest
|
|
||||||
|
|
||||||
|
|
||||||
Index: behave-1.3.3/tests/unit/test_formatter.py
|
|
||||||
===================================================================
|
|
||||||
--- behave-1.3.3.orig/tests/unit/test_formatter.py
|
|
||||||
+++ behave-1.3.3/tests/unit/test_formatter.py
|
|
||||||
@@ -6,7 +6,7 @@ import sys
|
@@ -6,7 +6,7 @@ import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
import unittest
|
import unittest
|
||||||
import six
|
import six
|
||||||
-from mock import Mock, patch
|
-from mock import Mock, patch
|
||||||
+from unittest.mock import Mock, patch
|
+from unittest.mock import Mock, patch
|
||||||
|
from nose.tools import * # pylint: disable=wildcard-import, unused-wildcard-import
|
||||||
|
|
||||||
from behave.formatter._registry import make_formatters
|
from behave.formatter._registry import make_formatters
|
||||||
from behave.formatter import pretty
|
diff -upr behave-1.2.6.orig/test/test_log_capture.py behave-1.2.6/test/test_log_capture.py
|
||||||
from behave.formatter.base import StreamOpener
|
--- behave-1.2.6.orig/test/test_log_capture.py 2022-05-17 16:51:03.364286060 +0200
|
||||||
Index: behave-1.3.3/tests/unit/test_log_capture.py
|
+++ behave-1.2.6/test/test_log_capture.py 2022-05-17 16:51:03.436286514 +0200
|
||||||
===================================================================
|
@@ -1,7 +1,7 @@
|
||||||
--- behave-1.3.3.orig/tests/unit/test_log_capture.py
|
from __future__ import absolute_import, with_statement
|
||||||
+++ behave-1.3.3/tests/unit/test_log_capture.py
|
|
||||||
|
from nose.tools import *
|
||||||
|
-from mock import patch
|
||||||
|
+from unittest.mock import patch
|
||||||
|
|
||||||
|
from behave.log_capture import LoggingCapture
|
||||||
|
from six.moves import range
|
||||||
|
diff -upr behave-1.2.6.orig/test/test_matchers.py behave-1.2.6/test/test_matchers.py
|
||||||
|
--- behave-1.2.6.orig/test/test_matchers.py 2022-05-17 16:51:03.364286060 +0200
|
||||||
|
+++ behave-1.2.6/test/test_matchers.py 2022-05-17 16:51:03.436286514 +0200
|
||||||
@@ -1,6 +1,6 @@
|
@@ -1,6 +1,6 @@
|
||||||
# -*- coding: UTF-8 -*-
|
# -*- coding: UTF-8 -*-
|
||||||
from __future__ import absolute_import, with_statement
|
from __future__ import absolute_import, with_statement
|
||||||
-from mock import patch
|
|
||||||
+from unittest.mock import patch
|
|
||||||
from behave.log_capture import LoggingCapture
|
|
||||||
from six.moves import range
|
|
||||||
|
|
||||||
Index: behave-1.3.3/tests/unit/test_matchers.py
|
|
||||||
===================================================================
|
|
||||||
--- behave-1.3.3.orig/tests/unit/test_matchers.py
|
|
||||||
+++ behave-1.3.3/tests/unit/test_matchers.py
|
|
||||||
@@ -2,7 +2,7 @@
|
|
||||||
# ruff: noqa: E731
|
|
||||||
from __future__ import absolute_import, with_statement
|
|
||||||
import pytest
|
|
||||||
-from mock import Mock, patch
|
-from mock import Mock, patch
|
||||||
+from unittest.mock import Mock, patch
|
+from unittest.mock import Mock, patch
|
||||||
|
from nose.tools import * # pylint: disable=wildcard-import, unused-wildcard-import
|
||||||
import parse
|
import parse
|
||||||
from behave.exception import NotSupportedWarning
|
from behave.matchers import Match, Matcher, ParseMatcher, RegexMatcher, \
|
||||||
from behave.matchers import (
|
diff -upr behave-1.2.6.orig/test/test_model.py behave-1.2.6/test/test_model.py
|
||||||
Index: behave-1.3.3/tests/unit/test_model.py
|
--- behave-1.2.6.orig/test/test_model.py 2022-05-17 16:51:03.364286060 +0200
|
||||||
===================================================================
|
+++ behave-1.2.6/test/test_model.py 2022-05-17 16:51:03.436286514 +0200
|
||||||
--- behave-1.3.3.orig/tests/unit/test_model.py
|
@@ -3,7 +3,7 @@
|
||||||
+++ behave-1.3.3/tests/unit/test_model.py
|
|
||||||
@@ -4,7 +4,7 @@
|
|
||||||
from __future__ import absolute_import, print_function, with_statement
|
from __future__ import absolute_import, print_function, with_statement
|
||||||
import unittest
|
import unittest
|
||||||
import pytest
|
|
||||||
-from mock import Mock, patch
|
-from mock import Mock, patch
|
||||||
+from unittest.mock import Mock, patch
|
+from unittest.mock import Mock, patch
|
||||||
|
from nose.tools import * # pylint: disable=wildcard-import, unused-wildcard-import
|
||||||
import six
|
import six
|
||||||
from six.moves import range # pylint: disable=redefined-builtin
|
from six.moves import range # pylint: disable=redefined-builtin
|
||||||
from six.moves import zip # pylint: disable=redefined-builtin
|
diff -upr behave-1.2.6.orig/test/test_runner.py behave-1.2.6/test/test_runner.py
|
||||||
Index: behave-1.3.3/tests/unit/test_runner.py
|
--- behave-1.2.6.orig/test/test_runner.py 2022-05-17 16:51:03.364286060 +0200
|
||||||
===================================================================
|
+++ behave-1.2.6/test/test_runner.py 2022-05-17 16:51:03.436286514 +0200
|
||||||
--- behave-1.3.3.orig/tests/unit/test_runner.py
|
@@ -12,7 +12,7 @@ import unittest
|
||||||
+++ behave-1.3.3/tests/unit/test_runner.py
|
import six
|
||||||
@@ -8,7 +8,7 @@ import sys
|
|
||||||
import unittest
|
|
||||||
from six import StringIO
|
from six import StringIO
|
||||||
import pytest
|
|
||||||
-from mock import Mock, patch
|
-from mock import Mock, patch
|
||||||
+from unittest.mock import Mock, patch
|
+from unittest.mock import Mock, patch
|
||||||
from behave import runner_util
|
from nose.tools import * # pylint: disable=wildcard-import, unused-wildcard-import
|
||||||
from behave.runner import Context, Runner
|
|
||||||
from behave.exception import ConfigError
|
|
||||||
Index: behave-1.3.3/tests/unit/test_step_registry.py
|
|
||||||
===================================================================
|
|
||||||
--- behave-1.3.3.orig/tests/unit/test_step_registry.py
|
|
||||||
+++ behave-1.3.3/tests/unit/test_step_registry.py
|
|
||||||
@@ -3,7 +3,7 @@
|
|
||||||
# ruff: noqa: E731
|
|
||||||
|
|
||||||
|
from behave import runner_util
|
||||||
|
diff -upr behave-1.2.6.orig/test/test_step_registry.py behave-1.2.6/test/test_step_registry.py
|
||||||
|
--- behave-1.2.6.orig/test/test_step_registry.py 2022-05-17 16:51:03.364286060 +0200
|
||||||
|
+++ behave-1.2.6/test/test_step_registry.py 2022-05-17 16:51:03.436286514 +0200
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
# -*- coding: UTF-8 -*-
|
||||||
|
# pylint: disable=unused-wildcard-import
|
||||||
from __future__ import absolute_import, with_statement
|
from __future__ import absolute_import, with_statement
|
||||||
-from mock import Mock, patch
|
-from mock import Mock, patch
|
||||||
+from unittest.mock import Mock, patch
|
+from unittest.mock import Mock, patch
|
||||||
|
from nose.tools import * # pylint: disable=wildcard-import
|
||||||
from six.moves import range # pylint: disable=redefined-builtin
|
from six.moves import range # pylint: disable=redefined-builtin
|
||||||
from behave import step_registry
|
from behave import step_registry
|
||||||
|
diff -upr behave-1.2.6.orig/test/test_tag_matcher.py behave-1.2.6/test/test_tag_matcher.py
|
||||||
Index: behave-1.3.3/tests/functional/test_capture_on_failed.py
|
--- behave-1.2.6.orig/test/test_tag_matcher.py 2022-05-17 16:51:03.364286060 +0200
|
||||||
===================================================================
|
+++ behave-1.2.6/test/test_tag_matcher.py 2022-05-17 16:51:03.436286514 +0200
|
||||||
--- behave-1.3.3.orig/tests/functional/test_capture_on_failed.py
|
@@ -2,7 +2,7 @@
|
||||||
+++ behave-1.3.3/tests/functional/test_capture_on_failed.py
|
|
||||||
@@ -5,7 +5,7 @@ if the TEST ASSUMPTION, that is used her
|
|
||||||
* TEST ASSUMPTION: STORE_CAPTURED_ON_SUCCESS is False (only failures are captured)
|
|
||||||
"""
|
|
||||||
|
|
||||||
-from mock import Mock
|
|
||||||
+from unittest.mock import Mock
|
|
||||||
import pytest
|
|
||||||
|
|
||||||
from behave.configuration import Configuration
|
|
||||||
Index: behave-1.3.3/tests/functional/test_capture_on_success.py
|
|
||||||
===================================================================
|
|
||||||
--- behave-1.3.3.orig/tests/functional/test_capture_on_success.py
|
|
||||||
+++ behave-1.3.3/tests/functional/test_capture_on_success.py
|
|
||||||
@@ -5,7 +5,7 @@ if the TEST ASSUMPTION, that is used her
|
|
||||||
* TEST ASSUMPTION: STORE_CAPTURED_ON_SUCCESS is True (everything is captured)
|
|
||||||
"""
|
|
||||||
|
|
||||||
-from mock import Mock
|
|
||||||
+from unittest.mock import Mock
|
|
||||||
import pytest
|
|
||||||
|
|
||||||
from behave.configuration import Configuration
|
|
||||||
Index: behave-1.3.3/tests/issues/test_issue0619.py
|
|
||||||
===================================================================
|
|
||||||
--- behave-1.3.3.orig/tests/issues/test_issue0619.py
|
|
||||||
+++ behave-1.3.3/tests/issues/test_issue0619.py
|
|
||||||
@@ -20,7 +20,7 @@ so the default behaviour of getattr is n
|
|
||||||
from __future__ import absolute_import
|
|
||||||
from behave.configuration import Configuration
|
|
||||||
from behave.runner import Context, scoped_context_layer
|
|
||||||
-from mock import Mock
|
|
||||||
+from unittest.mock import Mock
|
|
||||||
|
|
||||||
|
|
||||||
def test_issue__getattr_with_protected_unknown_context_attribute_raises_no_error():
|
|
||||||
Index: behave-1.3.3/tests/issues/test_issue0767.py
|
|
||||||
===================================================================
|
|
||||||
--- behave-1.3.3.orig/tests/issues/test_issue0767.py
|
|
||||||
+++ behave-1.3.3/tests/issues/test_issue0767.py
|
|
||||||
@@ -14,7 +14,7 @@ Behave returns nothing. ::
|
|
||||||
This seems to be an oversight.
|
|
||||||
"""
|
|
||||||
|
|
||||||
-from mock import Mock
|
|
||||||
+from unittest.mock import Mock
|
|
||||||
from behave.fixture import fixture, use_fixture_by_tag
|
|
||||||
from behave.runner import Context
|
|
||||||
|
|
||||||
Index: behave-1.3.3/tests/unit/reporter/test_summary.py
|
|
||||||
===================================================================
|
|
||||||
--- behave-1.3.3.orig/tests/unit/reporter/test_summary.py
|
|
||||||
+++ behave-1.3.3/tests/unit/reporter/test_summary.py
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
# -*- coding: UTF-8 -*-
|
|
||||||
|
|
||||||
from __future__ import absolute_import, print_function, division
|
|
||||||
-from mock import Mock, patch
|
|
||||||
+from unittest.mock import Mock, patch
|
|
||||||
from behave.model import ScenarioOutline
|
|
||||||
from behave.model_type import Status
|
|
||||||
from behave.reporter.summary import (
|
|
||||||
Index: behave-1.3.3/tests/unit/test_deprecated.py
|
|
||||||
===================================================================
|
|
||||||
--- behave-1.3.3.orig/tests/unit/test_deprecated.py
|
|
||||||
+++ behave-1.3.3/tests/unit/test_deprecated.py
|
|
||||||
@@ -11,7 +11,7 @@ from behave.configuration import Configu
|
|
||||||
from behave.python_feature import PythonFeature
|
|
||||||
from behave.runner import Context, ModelRunner
|
|
||||||
from behave.tag_matcher import ActiveTagMatcher
|
|
||||||
-from mock import Mock
|
|
||||||
+from unittest.mock import Mock
|
|
||||||
import pytest
|
|
||||||
|
|
||||||
|
|
||||||
Index: behave-1.3.3/tests/unit/test_runner_context.py
|
|
||||||
===================================================================
|
|
||||||
--- behave-1.3.3.orig/tests/unit/test_runner_context.py
|
|
||||||
+++ behave-1.3.3/tests/unit/test_runner_context.py
|
|
||||||
@@ -7,7 +7,7 @@ import unittest
|
|
||||||
import warnings
|
|
||||||
from platform import python_implementation
|
|
||||||
|
|
||||||
-from mock import Mock, patch
|
|
||||||
+from unittest.mock import Mock, patch
|
|
||||||
import pytest
|
|
||||||
import six
|
|
||||||
|
|
||||||
Index: behave-1.3.3/tests/unit/test_runner_hook.py
|
|
||||||
===================================================================
|
|
||||||
--- behave-1.3.3.orig/tests/unit/test_runner_hook.py
|
|
||||||
+++ behave-1.3.3/tests/unit/test_runner_hook.py
|
|
||||||
@@ -3,7 +3,7 @@ Tests for :mod:`behave.runner` related t
|
|
||||||
"""
|
|
||||||
|
|
||||||
from __future__ import absolute_import, print_function
|
|
||||||
-from mock import Mock
|
|
||||||
+from unittest.mock import Mock
|
|
||||||
from behave.capture import CaptureSinkAsCollector
|
|
||||||
from behave.configuration import Configuration
|
|
||||||
from behave.runner import Context, ModelRunner
|
|
||||||
Index: behave-1.3.3/tests/unit/test_tag_matcher.py
|
|
||||||
===================================================================
|
|
||||||
--- behave-1.3.3.orig/tests/unit/test_tag_matcher.py
|
|
||||||
+++ behave-1.3.3/tests/unit/test_tag_matcher.py
|
|
||||||
@@ -9,7 +9,7 @@ Unit tests for active tag-matcher (mod:`
|
|
||||||
"""
|
|
||||||
|
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
from behave.tag_matcher import *
|
||||||
-from mock import Mock
|
-from mock import Mock
|
||||||
+from unittest.mock import Mock
|
+from unittest.mock import Mock
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
import operator
|
import warnings
|
||||||
|
# -- REQUIRES: pytest
|
||||||
|
diff -upr behave-1.2.6.orig/tests/api/_test_async_step34.py behave-1.2.6/tests/api/_test_async_step34.py
|
||||||
|
--- behave-1.2.6.orig/tests/api/_test_async_step34.py 2022-05-17 16:51:03.412286363 +0200
|
||||||
|
+++ behave-1.2.6/tests/api/_test_async_step34.py 2022-05-17 16:51:03.436286514 +0200
|
||||||
|
@@ -9,7 +9,7 @@ from behave.api.async_step import AsyncC
|
||||||
|
from behave._stepimport import use_step_import_modules
|
||||||
|
from behave.runner import Context, Runner
|
||||||
|
import sys
|
||||||
|
-from mock import Mock
|
||||||
|
+from unittest.mock import Mock
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
from .testing_support import StopWatch, SimpleStepContainer
|
||||||
|
diff -upr behave-1.2.6.orig/tests/unit/test_capture.py behave-1.2.6/tests/unit/test_capture.py
|
||||||
|
--- behave-1.2.6.orig/tests/unit/test_capture.py 2022-05-17 16:51:03.412286363 +0200
|
||||||
|
+++ behave-1.2.6/tests/unit/test_capture.py 2022-05-17 16:51:03.440286539 +0200
|
||||||
|
@@ -6,7 +6,7 @@ Unittests for :mod:`behave.capture` modu
|
||||||
|
from __future__ import absolute_import, print_function
|
||||||
|
import sys
|
||||||
|
from behave.capture import Captured, CaptureController
|
||||||
|
-from mock import Mock
|
||||||
|
+from unittest.mock import Mock
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
diff -upr behave-1.2.6.orig/tests/unit/test_context_cleanups.py behave-1.2.6/tests/unit/test_context_cleanups.py
|
||||||
|
--- behave-1.2.6.orig/tests/unit/test_context_cleanups.py 2022-05-17 16:51:03.412286363 +0200
|
||||||
|
+++ behave-1.2.6/tests/unit/test_context_cleanups.py 2022-05-17 16:51:03.440286539 +0200
|
||||||
|
@@ -13,7 +13,7 @@ OPEN ISSUES:
|
||||||
|
from __future__ import print_function
|
||||||
|
from behave.runner import Context, scoped_context_layer
|
||||||
|
from contextlib import contextmanager
|
||||||
|
-from mock import Mock, NonCallableMock
|
||||||
|
+from unittest.mock import Mock, NonCallableMock
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
|
diff -upr behave-1.2.6.orig/tests/unit/test_fixture.py behave-1.2.6/tests/unit/test_fixture.py
|
||||||
|
--- behave-1.2.6.orig/tests/unit/test_fixture.py 2022-05-17 16:51:03.412286363 +0200
|
||||||
|
+++ behave-1.2.6/tests/unit/test_fixture.py 2022-05-17 16:51:03.440286539 +0200
|
||||||
|
@@ -12,7 +12,7 @@ from behave.fixture import \
|
||||||
|
from behave.runner import Context, CleanupError, scoped_context_layer
|
||||||
|
from behave._types import Unknown
|
||||||
|
import pytest
|
||||||
|
-from mock import Mock
|
||||||
|
+from unittest.mock import Mock
|
||||||
|
import six
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,51 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Thu Nov 20 13:14:13 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
|
|
||||||
|
|
||||||
- Add missing runtime dependencies (boo#1253778)
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Wed Nov 12 14:13:28 UTC 2025 - Marius Grossu <marius.grossu@suse.com>
|
|
||||||
|
|
||||||
- update to 1.3.3:
|
|
||||||
* v1.3.2: Broke Python 2.7 support (submitted by: silent-observer)
|
|
||||||
- 1.3.2:
|
|
||||||
* Recursive discovery and import in steps directory is now disabled by default.
|
|
||||||
* RTFD: Enable PDF output format again (for download).
|
|
||||||
* Improve command-line option descriptions (show: value).
|
|
||||||
* Use "confval" directive for config-file parameters.
|
|
||||||
* api: Add "Configuration" class description.
|
|
||||||
* Include changes from pull #1258
|
|
||||||
* Fix more deadlinks in docs
|
|
||||||
* behave4cmd0: Update version info to v1.3.1
|
|
||||||
* behave4cmd0.command_shell: Cleanup of BEHAVE_CMD value usage.
|
|
||||||
* Update to python-version: "3.14.0-rc.2" (was: "3.14.0-rc.1")
|
|
||||||
* Update actions/checkout to v5 (was: v4).
|
|
||||||
* Use astral-sh/setup-uv@v6 (was: v3).
|
|
||||||
- 1.3.1:
|
|
||||||
* ImportError: cannot import name 'asynccontextmanager' not found in python 3.6 (submitted by: rzuckerm)
|
|
||||||
* AmbiguousStep error on step import with "re" step-matcher (submitted by: VolodymyrDan00)
|
|
||||||
* Add section with description of "Runners" extension point.
|
|
||||||
* Add section with "Cucumber-Expressions".
|
|
||||||
* docs: userdata (provided by: Therdel, fixes: #1234)
|
|
||||||
* userdata_defines configuration file parameter is not up to date (submitted by: vvavrychuk)
|
|
||||||
- 1.3.0:
|
|
||||||
* Gherkin v6 support
|
|
||||||
* Native support for cucumber-expressions as step matcher
|
|
||||||
* Native support for async-steps
|
|
||||||
* Support for tag-expressions v2
|
|
||||||
* Distinguish in outcome between failures (assert-failed) and errors (unexpected exceptions at runtime)
|
|
||||||
* Improved captured-output support
|
|
||||||
* Improved logging support and log-to-file support
|
|
||||||
* And many things more ...
|
|
||||||
- added new BuildRequires in spec file:
|
|
||||||
* %{python_module cucumber-tag-expressions}
|
|
||||||
* %{python_module assertpy >= 1.1}
|
|
||||||
* %{python_module chardet}
|
|
||||||
- removed the setuptools related files
|
|
||||||
- removed the patches not in use anymore and fixed upstream:
|
|
||||||
* no2to3.patch
|
|
||||||
* python-behave-fix-tests.patch
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jun 4 15:05:03 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
|
Wed Jun 4 15:05:03 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-behave
|
# spec file for package python-behave
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC and contributors
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -19,15 +19,19 @@
|
|||||||
%bcond_without libalternatives
|
%bcond_without libalternatives
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-behave
|
Name: python-behave
|
||||||
Version: 1.3.3
|
Version: 1.2.6
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Behaviour-driven development, Python style
|
Summary: Behaviour-driven development, Python style
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/behave/behave
|
URL: https://github.com/behave/behave
|
||||||
Source: https://files.pythonhosted.org/packages/source/b/behave/behave-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/b/behave/behave-%{version}.tar.gz
|
||||||
|
Patch1: no2to3.patch
|
||||||
|
# https://github.com/behave/behave/commit/83906ba779956af9437defcb8975debb18440e0d
|
||||||
|
# https://github.com/behave/behave/commit/66fcadb23bea79e60f370e66bf7588de2f1934e3
|
||||||
|
Patch2: python-behave-fix-tests.patch
|
||||||
# https://github.com/behave/behave/issues/1028
|
# https://github.com/behave/behave/issues/1028
|
||||||
Patch1: python-behave-no-mock.patch
|
Patch3: python-behave-no-mock.patch
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@@ -36,9 +40,6 @@ BuildRequires: alts
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: alts
|
Requires: alts
|
||||||
Requires: python-colorama
|
|
||||||
Requires: python-cucumber-expressions
|
|
||||||
Requires: python-cucumber-tag-expressions
|
|
||||||
Requires: python-parse >= 1.8.2
|
Requires: python-parse >= 1.8.2
|
||||||
Requires: python-parse_type >= 0.4.2
|
Requires: python-parse_type >= 0.4.2
|
||||||
Requires: python-six >= 1.11
|
Requires: python-six >= 1.11
|
||||||
@@ -62,15 +63,10 @@ Suggests: python-traceback2
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module PyHamcrest >= 1.8}
|
BuildRequires: %{python_module PyHamcrest >= 1.8}
|
||||||
BuildRequires: %{python_module assertpy >= 1.1}
|
|
||||||
BuildRequires: %{python_module chardet}
|
|
||||||
BuildRequires: %{python_module cucumber-expressions}
|
|
||||||
BuildRequires: %{python_module cucumber-tag-expressions}
|
|
||||||
BuildRequires: %{python_module parse >= 1.8.2}
|
BuildRequires: %{python_module parse >= 1.8.2}
|
||||||
BuildRequires: %{python_module parse_type >= 0.4.2}
|
BuildRequires: %{python_module parse_type >= 0.4.2}
|
||||||
BuildRequires: %{python_module path.py >= 10.1}
|
BuildRequires: %{python_module path.py >= 10.1}
|
||||||
BuildRequires: %{python_module pytest >= 3.0}
|
BuildRequires: %{python_module pytest >= 3.0}
|
||||||
BuildRequires: %{python_module pytest-html >= 2.0}
|
|
||||||
BuildRequires: %{python_module six >= 1.11}
|
BuildRequires: %{python_module six >= 1.11}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@@ -108,6 +104,8 @@ code.
|
|||||||
%doc CHANGES.rst README.rst
|
%doc CHANGES.rst README.rst
|
||||||
%python_alternative %{_bindir}/behave
|
%python_alternative %{_bindir}/behave
|
||||||
%{python_sitelib}/behave
|
%{python_sitelib}/behave
|
||||||
|
%{python_sitelib}/setuptools_behave.py
|
||||||
|
%pycache_only %{python_sitelib}/__pycache__/setuptools_behave*
|
||||||
%{python_sitelib}/behave-%{version}*-info
|
%{python_sitelib}/behave-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user