summaryrefslogtreecommitdiff
path: root/tests/conftest.py
Commit message (Collapse)AuthorAgeFilesLines
* Ensure there's nothing on the error stack after tests (#5997)Alex Gaynor2021-09-261-1/+8
| | | | | | | | | | | | | | | | | * Ensure there's nothing on the error stack after tests * Update binding.py * Simplify * Be sure it's clear at teh start of the test * update for libressl version * Workaround for OpenSSL 3.0 * Workaround for OpenSSL 3.0 * Link to issue
* FIPS 3.0.0 support (#6012)Paul Kehrer2021-08-291-0/+6
| | | | | | | | | | | | | | | | | | | | | * FIPS 3.0.0 support * comments * remove unneeded error clear * review comments * small refactor * black * flake8 too * review feedback * oops * fix
* Speed up RSA tests in 3.0.0 (#6206)Paul Kehrer2021-08-111-0/+9
| | | | | | | | | | | | | | | | | | | | * Speed up RSA tests in 3.0.0 RSA_check_key is slower in OpenSSL 3.0.0 due to improved primality checking. In normal use this is unlikely to be a problem since users don't load new keys constantly, but we do in our tests. This adds some private flags to allow skipping those checks for performance reasons. On my laptop with this patch it takes 16s to run test_rsa.py. The previous commit takes 72s. * black * different approach * skip rsa key checks in wycheproof wycheproof's tets don't rely on broken keys
* Remove requires_backend_interface from tests because it was useless (#5884)Alex Gaynor2021-03-011-13/+0
|
* fixes #5611 -- use subtests for wycheproof tests for speed (#5616)Alex Gaynor2020-12-091-15/+1
|
* Remove __future__ import from our code (#5610)Alex Gaynor2020-12-091-1/+0
|
* Simplify wycheproof pytest code (#5579)Alex Gaynor2020-11-201-3/+1
|
* Paint it Black by the Rolling Stones (#5324)Alex Gaynor2020-07-201-5/+9
|
* test FIPS mode on centos8 (#5323)Paul Kehrer2020-07-201-1/+10
| | | | | | | | | | | | | | | * test FIPS mode on centos8 * remove branch we don't take * simpler * better comment * rename * revert some things that don't matter * small cleanups
* Simplify string formatting (#4757)Alex Gaynor2019-02-201-2/+2
|
* update pytest config (#4463)Paul Kehrer2018-09-061-2/+3
| | | | | | | | | | | | | | * update pytest config pytest 3.8.0 was just released and officially deprecates some of the way we do pytest marks. They introduced a new way to do this in 3.6 so this PR switches to that mechanism and updates our minimum pytest requirement * update the stubs * also update wycheproof test config to remove deprecated paths * don't need this any more
* Refs #3331 -- added initial wycheproof integration, starting with x25519, ↵Alex Gaynor2018-07-161-1/+18
| | | | | rsa, and keywrap (#4310) * Refs #3331 -- added initial wycheproof integration, starting with x25519 tests
* call check_backend_support directly from backend fixture (#3666)Alex Gaynor2017-06-031-17/+7
|
* Switched our backend to be a normal fixture in tests (#3665)Alex Gaynor2017-06-031-18/+16
|
* Delete some code (#3563)Alex Gaynor2017-05-201-11/+7
| | | | | | | | * Delete some code * removed import * delete more code
* remove multibackend (#3555)Paul Kehrer2017-05-201-2/+1
| | | | | | | | * remove multibackend * oops * goodbye pointless tests
* py26Alex Gaynor2016-03-191-1/+1
|
* oops, flake8Alex Gaynor2016-03-191-0/+1
|
* Instead of running a python -c, use pytest_report_header to indicate OpenSSL ↵Alex Gaynor2016-03-191-0/+4
| | | | version
* Don't try to load backends if the test doesn't need itAlex Gaynor2015-07-121-3/+3
|
* Fixed #1689 -- correctly handle code with multiple requires_backend_itnerfaceAlex Gaynor2015-07-011-3/+5
|
* Hoist this logic out of the loop, since it's used after the end of the loopAlex Gaynor2014-12-181-4/+4
|
* Update the license header for every source file, as well as the documentation.Alex Gaynor2014-11-161-12/+3
| | | | Fixes #1209
* fix coverage for backend parametrizationPaul Kehrer2014-10-251-10/+5
| | | | | Any test that takes a backend is required to provide the requires_backend_interface decorator.
* move skip_if_empty to separate function for test coveragePaul Kehrer2014-10-251-11/+6
|
* add comment explaining some weirdnessPaul Kehrer2014-10-241-0/+2
|
* reorganize try block for test generationPaul Kehrer2014-10-241-3/+4
|
* filter backends during initial generation to elide tests entirelyPaul Kehrer2014-10-241-12/+21
|
* public API onlyAlex Gaynor2014-10-231-1/+1
|
* flatten lineAlex Gaynor2014-10-231-4/+1
|
* Fix to handle multiple instances of @pytest.mark_requires_backend_interfaceAlex Gaynor2014-10-231-6/+9
|
* Change how we represented that a test requires a backend.Alex Gaynor2014-10-231-22/+13
| | | | This way is more extensible and requires less maintaince
* fixesAlex Gaynor2014-09-081-1/+3
|
* ECDSA backendAlex Stapleton2014-06-071-7/+4
|
* Add pkcs8_serialization markAlex Stapleton2014-05-271-1/+7
|
* Rename OpenSSLSerializationBackendAlex Stapleton2014-04-251-1/+6
|
* Fix pep8 errorsAyrx2014-04-221-1/+1
|
* Added CMAC testsAyrx2014-04-221-3/+3
|
* Add DSABackendMohammed Attia2014-04-041-1/+3
|
* import order fixes for future automated checkingPaul Kehrer2014-03-191-2/+2
|
* s/available_backends/_available_backends/Alex Stapleton2014-03-161-2/+2
|
* Fix circular imports with available_backends()Alex Stapleton2014-03-161-2/+2
|
* Added future imports and licenses that are missingAlex Gaynor2014-03-081-0/+15
|
* pytest marks for RSAPaul Kehrer2014-02-081-1/+2
|
* okay this time really finish the rename. Up example iterations to 100kPaul Kehrer2014-01-281-2/+2
|
* PBKDF2 support for OpenSSL backendPaul Kehrer2014-01-281-1/+2
|
* revert fixture decorator for now, switch to append. no more globalsPaul Kehrer2014-01-191-11/+3
|
* modify backend selection to allow multiple backends via comma delimiterPaul Kehrer2014-01-181-6/+6
|
* better name for the variablePaul Kehrer2014-01-141-5/+4
|
* don't mutate _ALL_BACKENDSPaul Kehrer2014-01-141-2/+9
|