Closed mcepl closed 3 years ago
Hi, the test fails on building vehicles.xsd for some reason (maybe cars.xsd is not readable/found). I will take a deeper look at error details and try to reproduce the problem.
Thank you.
Found the problem: the test has to be skipped if remote networks are not accessible. For patching decorate the test as:
@unittest.skipIf(SKIP_REMOTE_TESTS, "Remote networks are not accessible.")
def test_export_remote__issue_187(self):
vh_schema_file = self.casepath('issues/issue_187/issue_187_2.xsd')
vh_schema = self.schema_class(vh_schema_file)
The name SKIP_REMOTE_TESTS is already imported (there is another test skipped in the same module).
If don't mind i will publish the patch with v1.3.0 that is coming soon (but if it's necessary for packaging i can release a v1.2.6 before ...)
Kind regards
@unittest.skipIf(SKIP_REMOTE_TESTS, "Remote networks are not accessible.")
Are you certain SKIP_REMOTE_TESTS
value is cached, or do we have to wait 5 seconds for each skipped test?
If don't mind i will publish the patch with v1.3.0 that is coming soon (but if it's necessary for packaging i can release a v1.2.6 before ...)
Don’t worry about that, I will add this patch :
--- a/tests/validators/test_schema_class.py
+++ b/tests/validators/test_schema_class.py
@@ -261,6 +261,7 @@ class TestXMLSchema10(XsdValidatorTestCa
self.assertFalse(os.path.isdir(dirname))
+ @unittest.skipIf(SKIP_REMOTE_TESTS, "Remote networks are not accessible.")
def test_export_remote__issue_187(self):
vh_schema_file = self.casepath('issues/issue_187/issue_187_2.xsd')
vh_schema = self.schema_class(vh_schema_file)
myself and add it to our package.
SKIP_REMOTE_TESTS is set once at initial setup of tests (through the import of xmlschema.testing subpackage ...). It's a compromise, if you pull out your network cable just after the start of the tests the network related ones will fail :-).
Fixed with v1.3.0
Full build log with all details.