1 |
commit: e811a6e0c9f2df4d375cc3651e07370a1179234f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 17 06:12:54 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 17 06:17:42 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e811a6e0 |
7 |
|
8 |
dev-python/requests-oauthlib: Use pytest for nice deselect |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../requests-oauthlib/requests-oauthlib-1.3.0.ebuild | 17 +++++++++-------- |
13 |
1 file changed, 9 insertions(+), 8 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/requests-oauthlib/requests-oauthlib-1.3.0.ebuild b/dev-python/requests-oauthlib/requests-oauthlib-1.3.0.ebuild |
16 |
index cb2095e22a5..0dfb8b55327 100644 |
17 |
--- a/dev-python/requests-oauthlib/requests-oauthlib-1.3.0.ebuild |
18 |
+++ b/dev-python/requests-oauthlib/requests-oauthlib-1.3.0.ebuild |
19 |
@@ -22,14 +22,15 @@ BDEPEND=" |
20 |
dev-python/requests-mock[${PYTHON_USEDEP}] |
21 |
)" |
22 |
|
23 |
-distutils_enable_tests unittest |
24 |
+distutils_enable_tests pytest |
25 |
|
26 |
-src_prepare() { |
27 |
- # require Internet access |
28 |
- sed -e 's:testCanPostBinaryData:_&:' \ |
29 |
- -e 's:test_content_type_override:_&:' \ |
30 |
- -e 's:test_url_is_native_str:_&:' \ |
31 |
- -i tests/test_core.py || die |
32 |
+python_test() { |
33 |
+ local deselect=( |
34 |
+ # Internet access |
35 |
+ tests/test_core.py::OAuth1Test::testCanPostBinaryData |
36 |
+ tests/test_core.py::OAuth1Test::test_content_type_override |
37 |
+ tests/test_core.py::OAuth1Test::test_url_is_native_str |
38 |
+ ) |
39 |
|
40 |
- distutils-r1_src_prepare |
41 |
+ epytest ${deselect[@]/#/--deselect } |
42 |
} |