8000 Include tests · localstack/localstack@65c9b9a · GitHub
[go: up one dir, main page]

Skip to content

Commit 65c9b9a

Browse files
committed
Include tests
1 parent bf87505 commit 65c9b9a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/aws/services/kinesis/test_kinesis.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,25 @@ def test_subscribe_to_shard_with_java_sdk_v2_lambda(
758758
assert response_content == "ok"
759759

760760

761+
@pytest.mark.skipif(
762+
condition=is_aws_cloud(),
763+
reason="Duplicate of all tests in TestKinesis. Since we cannot unmark test cases, only run against LocalStack.",
764+
)
765+
class TestKinesisMockScala(TestKinesis):
766+
@pytest.fixture(autouse=True)
767+
def set_kinesis_mock_scala_engine(self, monkeypatch):
768+
monkeypatch.setattr(config, "KINESIS_MOCK_PROVIDER_ENGINE", "scala")
769+
770+
@pytest.fixture(autouse=True, scope="function")
771+
def override_snapshot_session(self, _snapshot_session):
772+
# Replace the scope_key of the snapshot session to reference parent class' recorded snapshots
773+
_snapshot_session.scope_key = _snapshot_session.scope_key.replace(
774+
"TestKinesisMockScala", "TestKinesis"
775+
)
776+
# Ensure we load in the previously recorded state now that the scope key has been updated
777+
_snapshot_session.recorded_state = _snapshot_session._load_state()
778+
779+
761780
class TestKinesisPythonClient:
762781
@markers.skip_offline
763782
@markers.aws.only_localstack

0 commit comments

Comments
 (0)
0