Skip to content

Migrate "test/unit/test_providers_raw_master_key.py" from unittest to pytest #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions test/unit/test_providers_raw_master_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
"""Test suite for aws_encryption_sdk.key_providers.raw.RawMasterKey"""
import unittest

import pytest
from mock import MagicMock, patch, sentinel

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


class TestRawMasterKey(unittest.TestCase):
def setUp(self):
class TestRawMasterKey(object):
@pytest.fixture(autouse=True)
def apply_fixtures(self):
self.mock_algorithm = MagicMock()
self.mock_algorithm.__class__ = Algorithm
self.mock_algorithm.data_key_len = sentinel.data_key_len
Expand Down