Skip to content

Commit

Permalink
Remove mock as requirement as now part of Py 3.3+
Browse files Browse the repository at this point in the history
Remove mock as a test requirement as it's now part of Python from 3.3
onwards and we're dropping the last bits of Python 2 support. Unit test
updated to use new import (but maintain rest of code).
  • Loading branch information
tofu-rocketry committed Nov 28, 2024
1 parent 76baabc commit cf20291
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Additional requirements for the unit and coverage tests

coveralls<=1.2.0
mock<4.0.0 # Pinned because version 4 dropped support for Python 2.7
codecov
pre-commit
3 changes: 1 addition & 2 deletions test/test_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import tempfile
from textwrap import dedent
import unittest

import mock
import unittest.mock as mock

import ssm.agents
from ssm.ssm2 import Ssm2Exception
Expand Down

0 comments on commit cf20291

Please sign in to comment.