Loading pkgs/development/python-modules/python3-saml/default.nix +3 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,9 @@ buildPythonPackage rec { url = "https://github.com/SAML-Toolkits/python3-saml/commit/bd65578e5a21494c89320094c61c1c77250bea33.diff"; hash = "sha256-9Trew6R5JDjtc0NRGoklqMVDEI4IEqFOdK3ezyBU6gI="; }) # skip tests with expired test data # upstream issue: https://github.com/SAML-Toolkits/python3-saml/issues/373 ./skip-broken-tests.patch ]; propagatedBuildInputs = [ Loading pkgs/development/python-modules/python3-saml/skip-broken-tests.patch 0 → 100644 +28 −0 Original line number Diff line number Diff line diff --git a/tests/src/OneLogin/saml2_tests/response_test.py b/tests/src/OneLogin/saml2_tests/response_test.py index fbe714f..bbed3c2 100644 --- a/tests/src/OneLogin/saml2_tests/response_test.py +++ b/tests/src/OneLogin/saml2_tests/response_test.py @@ -562,6 +562,7 @@ class OneLogin_Saml2_Response_Test(unittest.TestCase): response_2 = OneLogin_Saml2_Response(settings, xml_2) self.assertTrue(response_2.check_one_condition()) + @unittest.skip("test data expired") def testCheckOneAuthnStatement(self): """ Tests the check_one_authnstatement method of SamlResponse @@ -970,6 +971,7 @@ class OneLogin_Saml2_Response_Test(unittest.TestCase): with self.assertRaisesRegex(Exception, 'Could not validate timestamp: expired. Check system clock.'): response_2.is_valid(self.get_request_data(), raise_exceptions=True) + @unittest.skip("test data expired") def testIsInValidNoStatement(self): """ Tests the is_valid method of the OneLogin_Saml2_Response @@ -1080,6 +1082,7 @@ class OneLogin_Saml2_Response_Test(unittest.TestCase): with self.assertRaisesRegex(Exception, 'Found an Attribute element with duplicated Name'): response.get_attributes() + @unittest.skip("test data expired") def testIsInValidDestination(self): """ Tests the is_valid method of the OneLogin_Saml2_Response class Loading
pkgs/development/python-modules/python3-saml/default.nix +3 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,9 @@ buildPythonPackage rec { url = "https://github.com/SAML-Toolkits/python3-saml/commit/bd65578e5a21494c89320094c61c1c77250bea33.diff"; hash = "sha256-9Trew6R5JDjtc0NRGoklqMVDEI4IEqFOdK3ezyBU6gI="; }) # skip tests with expired test data # upstream issue: https://github.com/SAML-Toolkits/python3-saml/issues/373 ./skip-broken-tests.patch ]; propagatedBuildInputs = [ Loading
pkgs/development/python-modules/python3-saml/skip-broken-tests.patch 0 → 100644 +28 −0 Original line number Diff line number Diff line diff --git a/tests/src/OneLogin/saml2_tests/response_test.py b/tests/src/OneLogin/saml2_tests/response_test.py index fbe714f..bbed3c2 100644 --- a/tests/src/OneLogin/saml2_tests/response_test.py +++ b/tests/src/OneLogin/saml2_tests/response_test.py @@ -562,6 +562,7 @@ class OneLogin_Saml2_Response_Test(unittest.TestCase): response_2 = OneLogin_Saml2_Response(settings, xml_2) self.assertTrue(response_2.check_one_condition()) + @unittest.skip("test data expired") def testCheckOneAuthnStatement(self): """ Tests the check_one_authnstatement method of SamlResponse @@ -970,6 +971,7 @@ class OneLogin_Saml2_Response_Test(unittest.TestCase): with self.assertRaisesRegex(Exception, 'Could not validate timestamp: expired. Check system clock.'): response_2.is_valid(self.get_request_data(), raise_exceptions=True) + @unittest.skip("test data expired") def testIsInValidNoStatement(self): """ Tests the is_valid method of the OneLogin_Saml2_Response @@ -1080,6 +1082,7 @@ class OneLogin_Saml2_Response_Test(unittest.TestCase): with self.assertRaisesRegex(Exception, 'Found an Attribute element with duplicated Name'): response.get_attributes() + @unittest.skip("test data expired") def testIsInValidDestination(self): """ Tests the is_valid method of the OneLogin_Saml2_Response class