[Python-modules-commits] [python-ramlfications] 02/02: skip less tests and build-depend on python3-pytest-mock

Paolo Greppi paolog-guest at moszumanska.debian.org
Wed May 24 16:44:17 UTC 2017


This is an automated email from the git hooks/post-receive script.

paolog-guest pushed a commit to branch master
in repository python-ramlfications.

commit a7436deb217a59685daeba4e388be0ac1c6c2a01
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Wed May 24 18:43:09 2017 +0200

    skip less tests and build-depend on python3-pytest-mock
---
 debian/control                      |  1 +
 debian/patches/0002-skip_tests.diff | 37 +++++--------------------------------
 2 files changed, 6 insertions(+), 32 deletions(-)

diff --git a/debian/control b/debian/control
index 230f471..5ea8e5d 100644
--- a/debian/control
+++ b/debian/control
@@ -11,6 +11,7 @@ Build-Depends: debhelper (>= 10)
  , python3-markdown
  , python3-mock
  , python3-pytest
+ , python3-pytest-mock
  , python3-setuptools
  , python3-sphinx
  , python3-termcolor
diff --git a/debian/patches/0002-skip_tests.diff b/debian/patches/0002-skip_tests.diff
index d490c13..0e176f1 100644
--- a/debian/patches/0002-skip_tests.diff
+++ b/debian/patches/0002-skip_tests.diff
@@ -10,7 +10,7 @@ Index: python-ramlfications/tests/test_loader.py
      assert dict_equal(expected, actual)
  
  
-+ at pytest.mark.skip(reason="fails during gbp buildpackage on Python 2")
++ at pytest.mark.skip(reason="fails during gbp buildpackage")
  def test_jsonref_remote_uri(tmpdir, httpserver):
      mock_remote_json = os.path.join(JSONREF, "jsonref_mock_remote.json")
      httpserver.serve_content(open(mock_remote_json).read())
@@ -22,38 +22,10 @@ Index: python-ramlfications/tests/test_main.py
      check_result(exp_code, exp_msg, result)
  
  
-+ at pytest.mark.skip(reason="fails during gbp buildpackage on Python 2")
++ at pytest.mark.skip(reason="fails during gbp buildpackage")
  def test_update(runner, mocker):
      """
      Successfully update supported mime types
-Index: python-ramlfications/tests/test_utils.py
-===================================================================
---- python-ramlfications.orig/tests/test_utils.py
-+++ python-ramlfications/tests/test_utils.py
-@@ -134,6 +134,7 @@ def test_urllib_download(downloaded_xml)
-         assert results == xml.read()
- 
- 
-+ at pytest.mark.skip(reason="fails during gbp buildpackage on Python 2")
- @patch("ramlfications.utils._parse_xml_data")
- @patch("ramlfications.utils._xml_to_dict")
- @patch("ramlfications.utils._save_updated_mime_types")
-@@ -150,6 +151,7 @@ def test_insecure_download_urllib_flag(_
-     mocker.stopall()
-
-
-+ at pytest.mark.skip(reason="fails during gbp buildpackage on Python 2")
- @patch("ramlfications.utils._xml_to_dict")
- @patch("ramlfications.utils._parse_xml_data")
- @patch("ramlfications.utils._save_updated_mime_types")
-@@ -166,6 +168,7 @@ def test_secure_download_requests_flag(_
-     mocker.stopall()
-
-
-+ at pytest.mark.skip(reason="fails during gbp buildpackage on Python 3")
- @patch("ramlfications.utils._xml_to_dict")
- @patch("ramlfications.utils._parse_xml_data")
- @patch("ramlfications.utils._requests_download")
 Index: python-ramlfications/tests/test_parser.py
 ===================================================================
 --- python-ramlfications.orig/tests/test_parser.py
@@ -62,7 +34,7 @@ Index: python-ramlfications/tests/test_parser.py
      assert res.traits[0].protocols == ["HTTP"]
  
  
-+ at pytest.mark.skip(reason="fails during gbp buildpackage on Python 3")
++ at pytest.mark.skip(reason="fails during gbp buildpackage")
  def test_resource_assigned_type(resources):
      res = resources[19]
  
@@ -70,7 +42,8 @@ Index: python-ramlfications/tests/test_parser.py
      assert res.description.raw == desc
  
  
-+ at pytest.mark.skip(reason="fails during gbp buildpackage on Python 3")
++ at pytest.mark.skip(reason="fails during gbp buildpackage")
  def test_resource_inherits_get(inherited_resources):
      assert len(inherited_resources.resources) == 7
      post_res = inherited_resources.resources[3]
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-ramlfications.git



More information about the Python-modules-commits mailing list