Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP3:Update
python-tldextract
tldextract-tests-offline.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tldextract-tests-offline.patch of Package python-tldextract
diff -ru tldextract-2.2.1.orig/tests/integration_test.py tldextract-2.2.1/tests/integration_test.py --- tldextract-2.2.1.orig/tests/integration_test.py 2016-04-04 04:11:18.000000000 +0200 +++ tldextract-2.2.1/tests/integration_test.py 2019-03-10 21:25:34.201039604 +0100 @@ -8,24 +8,6 @@ import tldextract - -def test_log_snapshot_diff(mocker): - mocker.patch.object(logging.getLogger(), 'level', logging.DEBUG) - debug_mock = mocker.patch.object(logging.getLogger('tldextract'), 'debug') - - extractor = tldextract.TLDExtract() - try: - os.remove(extractor.cache_file) - except (IOError, OSError): - logging.warning(traceback.format_exc()) - - extractor('ignore.com') - - assert debug_mock.call_count == 1 - log_str = debug_mock.call_args[0][0] - assert log_str.startswith('computed TLD diff') - - def test_bad_kwargs(): with pytest.raises(ValueError): tldextract.TLDExtract(
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor