File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -72,16 +72,16 @@ def _hash_digest_file(hasher, filepath):
7272
7373@pytest .fixture (scope = "session" )
7474def normalize_connection_id ():
75- """Normalizes the connection ID by casefolding only the LOCATION component .
75+ """Normalizes the connection ID by casefolding the PROJECT and LOCATION components .
7676
7777 Connection format: PROJECT.LOCATION.CONNECTION_NAME
78- Only LOCATION is case-insensitive; PROJECT and CONNECTION_NAME must be lowercase.
78+ PROJECT and LOCATION are case-insensitive; CONNECTION_NAME must be lowercase.
7979 """
8080
8181 def normalize (connection_id : str ) -> str :
8282 parts = connection_id .split ("." )
8383 if len (parts ) == 3 :
84- return f"{ parts [0 ]} .{ parts [1 ].casefold ()} .{ parts [2 ]} "
84+ return f"{ parts [0 ]. casefold () } .{ parts [1 ].casefold ()} .{ parts [2 ]} "
8585 return connection_id # Return unchanged if invalid format
8686
8787 return normalize
You can’t perform that action at this time.
0 commit comments