14
0

Accepting request 1153202 from devel:languages:python

- Skip broken tests with python 3.12

OBS-URL: https://build.opensuse.org/request/show/1153202
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cloudscraper?expand=0&rev=7
This commit is contained in:
2024-02-29 20:50:41 +00:00
committed by Git OBS Bridge
4 changed files with 18 additions and 8 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9fc3562818e58f98d4e3ca874de5ff24d072c554b5a627ce9e38d394bb209c7f
size 110992

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:91fa6241e035583108393e4cbe5eabe58f83e71e75f7b99ddd0c666ffd29f677
size 111952

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Feb 29 12:33:16 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Skip broken tests with python 3.12
-------------------------------------------------------------------
Fri Nov 12 01:28:36 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-cloudscraper
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,11 +16,10 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define modname cloudscraper
%define skip_python2 1
Name: python-cloudscraper
Version: 1.2.58
Version: 1.2.68
Release: 0
Summary: A Python module to bypass Cloudflare's anti-bot page
License: MIT
@@ -59,11 +58,17 @@ A Python module to bypass Cloudflare's anti-bot page.
%check
# Skip broken test
%pytest -k 'not test_getCookieString_challenge_js_challenge1_16_05_2020'
donttest="test_getCookieString_challenge_js_challenge1_16_05_2020"
donttest+=" or test_bad_interpreter_js_challenge1_16_05_2020"
donttest+=" or test_bad_solve_js_challenge1_16_05_2020"
donttest+=" or test_Captcha_challenge_12_12_2019"
donttest+=" or test_reCaptcha_providers"
%pytest -k "not ($donttest)"
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/cloudscraper
%{python_sitelib}/cloudscraper-%{version}*-info
%changelog