-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update python-cornice to version 6.0.1 / rev 3 via SR 1145145
https://build.opensuse.org/request/show/1145145 by user sebix + anag+factory - Add fix-python-312-test.patch from https://github.com/Cornices/cornice/commit/61e209d9bc946563bd7dc645a8a65f14d94246f1.patch to fix Python 3.12 build, see Cornices/cornice#581
- Loading branch information
1 parent
082f044
commit 981cc29
Showing
5 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From 61e209d9bc946563bd7dc645a8a65f14d94246f1 Mon Sep 17 00:00:00 2001 | ||
From: "Benjamin A. Beasley" <[email protected]> | ||
Date: Thu, 13 Jul 2023 10:48:10 -0400 | ||
Subject: [PATCH] Use TestCase.assertTrue() instead of TestCase.assert_() | ||
|
||
The assert_() method is deprecated and will be removed in Python 3.12. | ||
--- | ||
tests/test_resource.py | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/tests/test_resource.py b/tests/test_resource.py | ||
index 7fb544d6..ceb9ee70 100644 | ||
--- a/tests/test_resource.py | ||
+++ b/tests/test_resource.py | ||
@@ -183,11 +183,11 @@ def test_context_factory(self): | ||
def test_explicit_collection_service_name(self): | ||
route_url = testing.DummyRequest().route_url | ||
# service must exist | ||
- self.assert_(route_url('collection_user_service')) | ||
+ self.assertTrue(route_url('collection_user_service')) | ||
|
||
def test_explicit_service_name(self): | ||
route_url = testing.DummyRequest().route_url | ||
- self.assert_(route_url('user_service', id=42)) # service must exist | ||
+ self.assertTrue(route_url('user_service', id=42)) # service must exist | ||
|
||
@mock.patch('cornice.resource.Service') | ||
def test_factory_is_autowired(self, mocked_service): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
------------------------------------------------------------------- | ||
Thu Feb 8 11:27:22 UTC 2024 - Sebastian Wagner <[email protected]> | ||
|
||
- Add fix-python-312-test.patch from https://github.com/Cornices/cornice/commit/61e209d9bc946563bd7dc645a8a65f14d94246f1.patch to fix Python 3.12 build, see https://github.com/Cornices/cornice/issues/581 | ||
|
||
------------------------------------------------------------------- | ||
Fri Jan 7 18:56:53 UTC 2022 - Sebastian Wagner <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters