diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b4e1df586..3e14e1cf6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.9"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.9"] steps: - uses: actions/checkout@v3 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a454a0223..331c940e5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer diff --git a/pyproject.toml b/pyproject.toml index 0062728dd..acf3ca6fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ dev = [ "build", "flaky", "invoke", - "moto<3.0.0", + "moto>=4.2.8,<5.0.0", "packaging", "pre-commit", "pytest", diff --git a/tests/utils/mock_swf_test_case.py b/tests/utils/mock_swf_test_case.py index 015d20f2d..490f821e1 100644 --- a/tests/utils/mock_swf_test_case.py +++ b/tests/utils/mock_swf_test_case.py @@ -4,7 +4,6 @@ import boto3 from moto import mock_s3, mock_swf -from moto.swf import swf_backend from simpleflow.swf.executor import Executor from simpleflow.swf.mapper.actors import Decider @@ -38,12 +37,6 @@ def setUp(self): self.s3_conn = boto3.client("s3", region_name="us-east-1") self.s3_conn.create_bucket(Bucket="jumbo-bucket") - def tearDown(self): - swf_backend.reset() - assert not self.swf_conn.list_domains(registrationStatus="REGISTERED")[ - "domainInfos" - ], "moto state incorrectly reset!" - def register_activity_type(self, func: str, task_list: str): self.swf_conn.register_activity_type(domain=self.domain.name, name=func, version=task_list)