File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
tests/aws/services/kinesis Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -758,6 +758,25 @@ def test_subscribe_to_shard_with_java_sdk_v2_lambda(
758
758
assert response_content == "ok"
759
759
760
760
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
+
761
780
class TestKinesisPythonClient :
762
781
@markers .skip_offline
763
782
@markers .aws .only_localstack
You can’t perform that action at this time.
0 commit comments