Skip to content

Commit 2b2e616

Browse files
ansanpermattsb42-aws
authored andcommitted
Migrate "test/unit/test_providers_raw_master_key.py" from unittest to pytest (#123)
* Migrating unit/test_deserialize.py from unittest from pytest * Migrate unit/test_provides_kms_master_key.py from unittest to pytest * Migrated unit/test/_providers_kms_master_key_provider.py from unittest to pytest * unit/test_providers_raw_master_key.py * Removed unit tests not corresponding to this branch
1 parent b0da604 commit 2b2e616

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/unit/test_providers_raw_master_key.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
1313
"""Test suite for aws_encryption_sdk.key_providers.raw.RawMasterKey"""
14-
import unittest
15-
1614
import pytest
1715
from mock import MagicMock, patch, sentinel
1816

@@ -27,8 +25,9 @@
2725
pytestmark = [pytest.mark.unit, pytest.mark.local]
2826

2927

30-
class TestRawMasterKey(unittest.TestCase):
31-
def setUp(self):
28+
class TestRawMasterKey(object):
29+
@pytest.fixture(autouse=True)
30+
def apply_fixtures(self):
3231
self.mock_algorithm = MagicMock()
3332
self.mock_algorithm.__class__ = Algorithm
3433
self.mock_algorithm.data_key_len = sentinel.data_key_len

0 commit comments

Comments
 (0)