aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-01-30 11:46:01 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-01-30 11:46:01 -0800
commit19e19ae75385f652e1161e1153e9aea599cd6a07 (patch)
tree89a02ef21130d87e74b93af1c130ece9c3439c6f /tests
parent020ae0fa11bd5e33863b3944ad14bb18ec748645 (diff)
downloadcryptography-19e19ae75385f652e1161e1153e9aea599cd6a07.tar.gz
cryptography-19e19ae75385f652e1161e1153e9aea599cd6a07.tar.bz2
cryptography-19e19ae75385f652e1161e1153e9aea599cd6a07.zip
Replace re-running all tests with some unit tests
Diffstat (limited to 'tests')
-rw-r--r--tests/conftest.py5
-rw-r--r--tests/hazmat/backends/test_multibackend.py16
2 files changed, 17 insertions, 4 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 00c44ca9..ecad1b23 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -4,16 +4,13 @@ from cryptography.hazmat.backends import _ALL_BACKENDS
from cryptography.hazmat.backends.interfaces import (
HMACBackend, CipherBackend, HashBackend, PBKDF2HMACBackend
)
-from cryptography.hazmat.backends.multibackend import PrioritizedMultiBackend
from .utils import check_for_iface, check_backend_support, select_backends
def pytest_generate_tests(metafunc):
names = metafunc.config.getoption("--backend")
- selected_backends = select_backends(
- names, _ALL_BACKENDS + [PrioritizedMultiBackend(_ALL_BACKENDS)]
- )
+ selected_backends = select_backends(names, _ALL_BACKENDS)
if "backend" in metafunc.fixturenames:
metafunc.parametrize("backend", selected_backends)
diff --git a/tests/hazmat/backends/test_multibackend.py b/tests/hazmat/backends/test_multibackend.py
new file mode 100644
index 00000000..aaf6d7c1
--- /dev/null
+++ b/tests/hazmat/backends/test_multibackend.py
@@ -0,0 +1,16 @@
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+class TestPrioritizedMultiBackend(object):
+ pass