Skip to content

Commit

Permalink
fix: skip SAR tests if python version > 3.10 (#3379)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaythapa committed Oct 11, 2023
1 parent 9074ad0 commit 9a85209
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/plugins/application/test_serverless_app_plugin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import sys
from unittest import TestCase
from unittest.mock import Mock, patch

import boto3
import pytest
from botocore.exceptions import ClientError
from samtranslator.model.exceptions import InvalidResourceException
from samtranslator.plugins.application.serverless_app_plugin import ServerlessAppPlugin
Expand Down Expand Up @@ -51,6 +53,7 @@ def mock_get_region(self, service_name, region_name):
return "us-east-1"


@pytest.mark.skipif(sys.version_info > (3, 10), reason="Test fails for python versions >3.10")
class TestServerlessAppPlugin_init(TestCase):
def setUp(self):
client = boto3.client("serverlessrepo", region_name="us-east-1")
Expand Down Expand Up @@ -115,6 +118,7 @@ def test_not_used_when_sar_client_provided(self):
self.client_mock.assert_not_called()


@pytest.mark.skipif(sys.version_info > (3, 10), reason="Test fails for python versions >3.10")
class TestServerlessAppPlugin_on_before_transform_template_translate(TestCase):
def setUp(self):
client = boto3.client("serverlessrepo", region_name="us-east-1")
Expand Down

0 comments on commit 9a85209

Please sign in to comment.