We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cba6995 commit fdb3b5aCopy full SHA for fdb3b5a
test/unit/test_providers_raw_master_key.py
@@ -11,8 +11,6 @@
11
# ANY KIND, either express or implied. See the License for the specific
12
# language governing permissions and limitations under the License.
13
"""Test suite for aws_encryption_sdk.key_providers.raw.RawMasterKey"""
14
-import unittest
15
-
16
import pytest
17
from mock import MagicMock, patch, sentinel
18
@@ -27,8 +25,9 @@
27
25
pytestmark = [pytest.mark.unit, pytest.mark.local]
28
26
29
30
-class TestRawMasterKey(unittest.TestCase):
31
- def setUp(self):
+class TestRawMasterKey(object):
+ @pytest.fixture(autouse=True)
+ def apply_fixtures(self):
32
self.mock_algorithm = MagicMock()
33
self.mock_algorithm.__class__ = Algorithm
34
self.mock_algorithm.data_key_len = sentinel.data_key_len
0 commit comments