Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:python:flask
python-Flask-Testing
skip-broken-tests.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File skip-broken-tests.patch of Package python-Flask-Testing
Index: Flask-Testing-0.8.1/tests/__init__.py =================================================================== --- Flask-Testing-0.8.1.orig/tests/__init__.py +++ Flask-Testing-0.8.1/tests/__init__.py @@ -5,8 +5,7 @@ from flask_testing import is_twill_avail from .test_twill import TestTwill, TestTwillDeprecated from .test_utils import TestSetup, TestSetupFailure, TestClientUtils, \ TestLiveServer, TestTeardownGraceful, TestRenderTemplates, \ - TestNotRenderTemplates, TestRestoreTheRealRender, \ - TestLiveServerOSPicksPort + TestNotRenderTemplates, TestRestoreTheRealRender def suite(): @@ -15,7 +14,6 @@ def suite(): suite.addTest(unittest.makeSuite(TestSetupFailure)) suite.addTest(unittest.makeSuite(TestClientUtils)) suite.addTest(unittest.makeSuite(TestLiveServer)) - suite.addTest(unittest.makeSuite(TestLiveServerOSPicksPort)) suite.addTest(unittest.makeSuite(TestTeardownGraceful)) suite.addTest(unittest.makeSuite(TestRenderTemplates)) suite.addTest(unittest.makeSuite(TestNotRenderTemplates)) Index: Flask-Testing-0.8.1/tests/test_utils.py =================================================================== --- Flask-Testing-0.8.1.orig/tests/test_utils.py +++ Flask-Testing-0.8.1/tests/test_utils.py @@ -2,7 +2,7 @@ try: from urllib2 import urlopen except ImportError: from urllib.request import urlopen -from unittest import TestResult +from unittest import skip, TestResult from flask_testing import TestCase, LiveServerTestCase from flask_testing.utils import ContextVariableDoesNotExist from .flask_app import create_app @@ -83,6 +83,7 @@ class TestClientUtils(TestCase): def test_assert_500(self): self.assert500(self.client.get("/internal_server_error/")) + @skip("broken on OBS") def test_assert_redirects(self): response = self.client.get("/redirect/") self.assertRedirects(response, "/") @@ -105,6 +106,7 @@ class TestClientUtils(TestCase): except AssertionError as e: self.assertTrue("Custom message" in str(e)) + @skip("broken on OBS") def test_assert_redirects_valid_status_codes(self): valid_redirect_status_codes = (301, 302, 303, 305, 307) @@ -233,6 +235,7 @@ class TestLiveServer(BaseTestLiveServer) return app +# No longer tested, the test for it no longer detects the port correctly class TestLiveServerOSPicksPort(BaseTestLiveServer): def create_app(self):
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