Denis Mingulov | 3113df8 | 2023-09-26 21:20:39 +0300 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | import pytest |
| 16 | |
| 17 | # List of tests expected to fail for some reason |
| 18 | XFAILED_TESTS = { |
| 19 | "tests/test_keys.py::test_getpriv[openssl-ed25519]", |
| 20 | "tests/test_keys.py::test_getpriv[openssl-x25519]", |
| 21 | "tests/test_keys.py::test_getpriv[pkcs8-rsa-2048]", |
| 22 | "tests/test_keys.py::test_getpriv[pkcs8-rsa-3072]", |
| 23 | "tests/test_keys.py::test_getpriv[pkcs8-ed25519]", |
| 24 | "tests/test_keys.py::test_getpub[pem-ed25519]", |
| 25 | "tests/test_keys.py::test_sign_verify[x25519]", |
| 26 | } |
| 27 | |
| 28 | |
| 29 | def pytest_runtest_setup(item): |
| 30 | if item.nodeid in XFAILED_TESTS: |
| 31 | pytest.xfail() |