1414# KIND, either express or implied. See the License for the
1515# specific language governing permissions and limitations
1616# under the License.
17- from typing import Any , Dict , List
17+ from typing import List
1818from unittest import mock
1919
2020import boto3
@@ -637,26 +637,6 @@ def test_update_namespace_properties_overlap_update_removal(
637637 assert test_catalog .load_namespace_properties (database_name ) == test_properties
638638
639639
640- @mock_aws
641- def test_passing_profile_name () -> None :
642- session_properties : Dict [str , Any ] = {
643- "aws_access_key_id" : "abc" ,
644- "aws_secret_access_key" : "def" ,
645- "aws_session_token" : "ghi" ,
646- "region_name" : "eu-central-1" ,
647- "profile_name" : "sandbox" ,
648- "botocore_session" : None ,
649- }
650- test_properties = {"type" : "glue" }
651- test_properties .update (session_properties )
652-
653- with mock .patch ("boto3.Session" ) as mock_session :
654- test_catalog = GlueCatalog ("glue" , ** test_properties )
655-
656- mock_session .assert_called_with (** session_properties )
657- assert test_catalog .glue is mock_session ().client ()
658-
659-
660640@mock_aws
661641def test_passing_glue_session_properties () -> None :
662642 session_properties : Properties = {
@@ -677,7 +657,6 @@ def test_passing_glue_session_properties() -> None:
677657 aws_session_token = "glue.session-token" ,
678658 region_name = "glue.region" ,
679659 profile_name = "glue.profile-name" ,
680- botocore_session = None ,
681660 )
682661 assert test_catalog .glue is mock_session ().client ()
683662
@@ -698,7 +677,6 @@ def test_passing_unified_session_properties_to_glue() -> None:
698677 aws_session_token = "client.session-token" ,
699678 region_name = "client.region" ,
700679 profile_name = "glue.profile-name" ,
701- botocore_session = None ,
702680 )
703681 assert test_catalog .glue is mock_session ().client ()
704682
0 commit comments