File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
modules/azurite/testcontainers/azurite Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -106,16 +106,15 @@ def get_connection_string(
106106 :rtype: str
107107 :raises ValueError: If an unrecognized `connection_string_type` is provided.
108108 """
109- match connection_string_type :
110- case ConnectionStringType .LOCALHOST :
111- return self .__get_local_connection_string ()
112- case ConnectionStringType .NETWORK :
113- return self .__get_external_connection_string ()
114- case _:
115- raise ValueError (
116- f"unrecognized connection string type { connection_string_type } , "
117- f"Supported values are ConnectionStringType.LOCALHOST or ConnectionStringType.NETWORK "
118- )
109+ if connection_string_type == ConnectionStringType .LOCALHOST :
110+ return self .__get_local_connection_string ()
111+ elif connection_string_type == ConnectionStringType .NETWORK :
112+ return self .__get_external_connection_string ()
113+ else :
114+ raise ValueError (
115+ f"unrecognized connection string type { connection_string_type } , "
116+ f"Supported values are ConnectionStringType.LOCALHOST or ConnectionStringType.NETWORK "
117+ )
119118
120119 def __get_local_connection_string (self ) -> str :
121120 """Generates a connection string for Azurite accessible from the local host machine.
You can’t perform that action at this time.
0 commit comments