Home
last modified time | relevance | path

Searched full:pytest (Results 1 – 25 of 660) sorted by relevance

12345678910>>...27

/external/python/google-auth-library-python/tests/transport/
Dtest__mtls_helper.py20 import pytest
64 pytest.public_cert_bytes + pytest.private_key_bytes,
65 pytest.public_cert_bytes,
66 pytest.private_key_bytes,
69 pytest.private_key_bytes + pytest.public_cert_bytes,
70 pytest.public_cert_bytes,
71 pytest.private_key_bytes,
76 pytest.public_cert_bytes
77 + pytest.public_cert_bytes
78 + pytest.private_key_bytes,
[all …]
/external/python/cryptography/tests/hazmat/primitives/
Dtest_hashes.py9 import pytest
20 @pytest.mark.requires_backend_interface(interface=HashBackend)
24 with pytest.raises(TypeError):
28 with pytest.raises(TypeError):
35 with pytest.raises(AlreadyFinalized):
38 with pytest.raises(AlreadyFinalized):
41 with pytest.raises(AlreadyFinalized):
49 @pytest.mark.supported(
53 @pytest.mark.requires_backend_interface(interface=HashBackend)
61 @pytest.mark.supported(
[all …]
Dtest_hash_vectors.py10 import pytest
19 @pytest.mark.supported(
23 @pytest.mark.requires_backend_interface(interface=HashBackend)
33 @pytest.mark.supported(
37 @pytest.mark.requires_backend_interface(interface=HashBackend)
47 @pytest.mark.supported(
51 @pytest.mark.requires_backend_interface(interface=HashBackend)
61 @pytest.mark.supported(
65 @pytest.mark.requires_backend_interface(interface=HashBackend)
75 @pytest.mark.supported(
[all …]
Dtest_aead.py10 import pytest
42 @pytest.mark.skipif(
46 @pytest.mark.requires_backend_interface(interface=CipherBackend)
52 @pytest.mark.skipif(
56 @pytest.mark.requires_backend_interface(interface=CipherBackend)
63 with pytest.raises(OverflowError):
66 with pytest.raises(OverflowError):
74 with pytest.raises(TypeError):
77 with pytest.raises(ValueError):
80 @pytest.mark.parametrize(
[all …]
Dtest_serialization.py12 import pytest
63 pytest.skip("Traditional OpenSSL format blocked in FIPS mode")
65 pytest.skip("Encrypted PEM_Serialization blocked in FIPS mode")
69 @pytest.mark.requires_backend_interface(interface=RSABackend)
70 @pytest.mark.parametrize(
90 @pytest.mark.requires_backend_interface(interface=RSABackend)
91 @pytest.mark.parametrize(
120 @pytest.mark.requires_backend_interface(interface=DERSerializationBackend)
122 @pytest.mark.requires_backend_interface(interface=RSABackend)
123 @pytest.mark.parametrize(
[all …]
Dtest_ciphers.py10 import pytest
35 @pytest.mark.parametrize(
44 with pytest.raises(ValueError):
48 with pytest.raises(TypeError, match="key must be bytes"):
53 @pytest.mark.requires_backend_interface(interface=CipherBackend)
54 @pytest.mark.parametrize(
58 with pytest.raises(ValueError):
62 with pytest.raises(TypeError):
66 with pytest.raises(ValueError):
69 @pytest.mark.requires_backend_interface(interface=CipherBackend)
[all …]
Dtest_block.py9 import pytest
28 @pytest.mark.requires_backend_interface(interface=CipherBackend)
48 with pytest.raises(TypeError):
52 @pytest.mark.requires_backend_interface(interface=CipherBackend)
63 with pytest.raises(AlreadyFinalized):
65 with pytest.raises(AlreadyFinalized):
70 with pytest.raises(AlreadyFinalized):
72 with pytest.raises(AlreadyFinalized):
84 with pytest.raises(AlreadyFinalized):
106 @pytest.mark.parametrize("mode", [DummyMode(), None])
[all …]
Dtest_ec.py12 import pytest
52 pytest.skip(
61 pytest.skip(
72 pytest.skip(
81 with pytest.raises(LookupError):
96 @pytest.mark.requires_backend_interface(interface=EllipticCurveBackend)
98 with pytest.raises(pytest.skip.Exception):
102 @pytest.mark.requires_backend_interface(interface=EllipticCurveBackend)
104 with pytest.raises(pytest.skip.Exception):
108 @pytest.mark.requires_backend_interface(interface=EllipticCurveBackend)
[all …]
Dtest_rsa.py11 import pytest
137 pytest.skip(
142 @pytest.mark.requires_backend_interface(interface=RSABackend)
144 with pytest.raises(pytest.skip.Exception):
172 @pytest.mark.requires_backend_interface(interface=RSABackend)
174 @pytest.mark.parametrize(
184 pytest.skip("Key size not FIPS compliant: {}".format(key_size))
186 pytest.skip(
197 with pytest.raises(ValueError):
202 with pytest.raises(ValueError):
[all …]
Dtest_keywrap.py10 import pytest
20 @pytest.mark.requires_backend_interface(interface=CipherBackend)
22 @pytest.mark.parametrize(
30 @pytest.mark.supported(
43 @pytest.mark.parametrize(
51 @pytest.mark.supported(
62 with pytest.raises(keywrap.InvalidUnwrap):
70 @pytest.mark.supported(
79 with pytest.raises(ValueError):
82 @pytest.mark.supported(
[all …]
Dtest_dh.py11 import pytest
44 pytest.skip("DH x9.42 serialization is not supported")
53 with pytest.raises(TypeError):
56 with pytest.raises(TypeError):
59 with pytest.raises(TypeError):
62 with pytest.raises(ValueError):
66 with pytest.raises(ValueError):
75 with pytest.raises(TypeError):
87 with pytest.raises(TypeError):
90 with pytest.raises(TypeError):
[all …]
Dtest_cmac.py9 import pytest
52 @pytest.mark.requires_backend_interface(interface=CMACBackend)
54 @pytest.mark.supported(
60 @pytest.mark.parametrize("params", vectors_aes)
70 @pytest.mark.supported(
76 @pytest.mark.parametrize("params", vectors_aes)
86 @pytest.mark.supported(
92 @pytest.mark.parametrize("params", vectors_3des)
107 @pytest.mark.supported(
113 @pytest.mark.parametrize("params", vectors_3des)
[all …]
Dtest_poly1305.py10 import pytest
26 @pytest.mark.supported(
35 @pytest.mark.supported(
40 @pytest.mark.parametrize(
65 with pytest.raises(AlreadyFinalized):
68 with pytest.raises(AlreadyFinalized):
73 with pytest.raises(TypeError):
76 with pytest.raises(TypeError):
84 with pytest.raises(AlreadyFinalized):
96 with pytest.raises(InvalidSignature):
[all …]
Dtest_dsa.py10 import pytest
39 pytest.skip(
44 @pytest.mark.requires_backend_interface(interface=DSABackend)
46 with pytest.raises(pytest.skip.Exception):
50 @pytest.mark.requires_backend_interface(interface=DSABackend)
57 with pytest.raises(ValueError):
60 @pytest.mark.parametrize(
72 pytest.skip("Small modulus blocked in FIPS mode")
105 @pytest.mark.parametrize(
161 with pytest.raises(ValueError):
[all …]
Dtest_ed448.py10 import pytest
26 @pytest.mark.supported(
47 @pytest.mark.supported(
52 @pytest.mark.parametrize(
61 pytest.skip("ed448 contexts are not currently supported")
82 with pytest.raises(InvalidSignature):
85 with pytest.raises(InvalidSignature):
93 @pytest.mark.parametrize(
126 @pytest.mark.parametrize(
168 with pytest.raises(TypeError):
[all …]
Dtest_padding.py7 import pytest
16 @pytest.mark.parametrize("size", [127, 4096, -2])
18 with pytest.raises(ValueError):
21 @pytest.mark.parametrize(
34 with pytest.raises(ValueError):
40 with pytest.raises(TypeError):
43 with pytest.raises(TypeError):
58 @pytest.mark.parametrize(
77 @pytest.mark.parametrize(
97 with pytest.raises(AlreadyFinalized):
[all …]
/external/python/cryptography/tests/x509/
Dtest_x509_crlbuilder.py9 import pytest
37 with pytest.raises(TypeError):
44 with pytest.raises(ValueError):
49 @pytest.mark.requires_backend_interface(interface=RSABackend)
50 @pytest.mark.requires_backend_interface(interface=X509Backend)
78 with pytest.raises(TypeError):
83 with pytest.raises(ValueError):
90 with pytest.raises(ValueError):
93 @pytest.mark.requires_backend_interface(interface=RSABackend)
94 @pytest.mark.requires_backend_interface(interface=X509Backend)
[all …]
Dtest_ocsp.py11 import pytest
78 with pytest.raises(ValueError):
111 with pytest.raises(NotImplementedError):
122 with pytest.raises(UnsupportedAlgorithm):
139 with pytest.raises(ValueError):
141 with pytest.raises(ValueError):
150 with pytest.raises(ValueError):
155 with pytest.raises(ValueError):
161 with pytest.raises(ValueError):
167 with pytest.raises(ValueError):
[all …]
Dtest_x509_revokedcertbuilder.py9 import pytest
19 with pytest.raises(TypeError):
23 with pytest.raises(ValueError):
27 with pytest.raises(ValueError):
30 @pytest.mark.requires_backend_interface(interface=X509Backend)
42 @pytest.mark.requires_backend_interface(interface=X509Backend)
55 with pytest.raises(ValueError):
60 with pytest.raises(ValueError):
63 @pytest.mark.requires_backend_interface(interface=X509Backend)
80 with pytest.raises(TypeError):
[all …]
/external/python/pybind11/tests/
Dtest_exceptions.py4 import pytest
11 with pytest.raises(RuntimeError) as excinfo:
17 with pytest.raises(RuntimeError) as excinfo:
21 with pytest.raises(ValueError) as excinfo:
27 with pytest.raises(RuntimeError) as excinfo:
31 with pytest.raises(ValueError) as excinfo:
35 with pytest.raises(ValueError) as excinfo:
39 with pytest.raises(TypeError) as excinfo:
43 with pytest.raises(StopIteration) as excinfo:
55 if hasattr(pytest, unraisable): # Python >= 3.8 and pytest >= 6
[all …]
/external/python/dateutil/dateutil/test/
Dtest_isoparser.py10 import pytest
49 @pytest.mark.parametrize('dt', tuple(DATES))
56 @pytest.mark.parametrize('dt', tuple(DATES))
65 @pytest.mark.parametrize('dt', tuple(DATES))
66 @pytest.mark.parametrize('fmt', YMD_FMTS)
95 @pytest.mark.parametrize('dt', tuple(DATETIMES))
96 @pytest.mark.parametrize('date_fmt', YMD_FMTS)
97 @pytest.mark.parametrize('tzoffset', TZOFFSETS)
102 @pytest.mark.parametrize('dt', tuple(DATETIMES))
103 @pytest.mark.parametrize('date_fmt', YMD_FMTS)
[all …]
Dtest_internals.py13 import pytest
23 # @pytest.mark.smoke
52 @pytest.mark.skipif(IS_PY32, reason='pytest.warns not supported on Python 3.2')
57 with pytest.warns(DeprecationWarning):
60 with pytest.warns(DeprecationWarning):
63 with pytest.warns(DeprecationWarning):
67 @pytest.mark.skipif(IS_PY32, reason='pytest.warns not supported on Python 3.2')
72 with pytest.warns(None) as recorder:
76 with pytest.warns(None) as recorder:
81 with pytest.warns(None) as recorder:
[all …]
/external/python/setuptools/
Dpytest.ini1 [pytest] section
16 # shopkeep/pytest-black#55 argument
17 …ignore:<class 'pytest_black.BlackItem'> is not using a cooperative constructor:pytest.PytestDeprec…
18 …ignore:The \(fspath. py.path.local\) argument to BlackItem is deprecated.:pytest.PytestDeprecation…
19 ignore:BlackItem is an Item subclass and should not be a collector:pytest.PytestWarning
21 # tholo/pytest-flake8#83
22 …ignore:<class 'pytest_flake8.Flake8Item'> is not using a cooperative constructor:pytest.PytestDepr…
23 …ignore:The \(fspath. py.path.local\) argument to Flake8Item is deprecated.:pytest.PytestDeprecatio…
24 ignore:Flake8Item is an Item subclass and should not be a collector:pytest.PytestWarning
26 # dbader/pytest-mypy#131
[all …]
/external/python/google-auth-library-python/tests_async/oauth2/
Dtest_reauth_async.py18 import pytest
55 @pytest.mark.asyncio
70 @pytest.mark.asyncio
90 @pytest.mark.asyncio
112 @pytest.mark.asyncio
124 @pytest.mark.asyncio
128 with pytest.raises(exceptions.ReauthFailError) as excinfo:
135 @pytest.mark.asyncio
141 with pytest.raises(exceptions.ReauthFailError) as excinfo:
148 @pytest.mark.asyncio
[all …]
/external/python/setuptools/setuptools.egg-info/
Drequires.txt18 pytest>=6
19 pytest-checkdocs>=2.4
20 pytest-flake8
21 pytest-enabler>=1.0.1
22 pytest-perf
29 pytest-xdist
38 pytest
39 pytest-xdist
40 pytest-enabler
50 pytest-black>=0.3.7
[all …]

12345678910>>...27