File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -84,8 +84,10 @@ def feedback_status() -> StatusResponse:
84
84
Response indicating the status of the feedback.
85
85
"""
86
86
logger .debug ("feedback status request received" )
87
- feedback_status = is_feedback_enabled ()
88
- return StatusResponse (functionality = "feedback" , status = {"enabled" : feedback_status })
87
+ feedback_status_enabled = is_feedback_enabled ()
88
+ return StatusResponse (
89
+ functionality = "feedback" , status = {"enabled" : feedback_status_enabled }
90
+ )
89
91
90
92
91
93
post_feedback_responses : dict [int | str , dict [str , Any ]] = {
Original file line number Diff line number Diff line change @@ -113,10 +113,10 @@ def min_tls_version(
113
113
tls_profile : TLSProfiles ,
114
114
) -> Optional [ssl .TLSVersion ]:
115
115
"""Retrieve minimal TLS version for the profile or for the current profile configuration."""
116
- min_tls_version = specified_tls_version
117
- if min_tls_version is None :
116
+ min_tls_version_specified = specified_tls_version
117
+ if min_tls_version_specified is None :
118
118
return MIN_TLS_VERSIONS [tls_profile ]
119
- return min_tls_version
119
+ return min_tls_version_specified
120
120
121
121
122
122
def ciphers_from_list (ciphers : Optional [list [str ]]) -> Optional [str ]:
@@ -136,7 +136,7 @@ def ciphers_as_string(
136
136
ciphers : Optional [list [str ]], tls_profile : TLSProfiles
137
137
) -> Optional [str ]:
138
138
"""Retrieve ciphers as one string for custom list of TLS profile-based list."""
139
- ciphers_as_string = ciphers_from_list (ciphers )
140
- if ciphers_as_string is None :
139
+ ciphers_as_str = ciphers_from_list (ciphers )
140
+ if ciphers_as_str is None :
141
141
return ciphers_for_tls_profile (tls_profile )
142
- return ciphers_as_string
142
+ return ciphers_as_str
Original file line number Diff line number Diff line change @@ -91,8 +91,8 @@ def teardown_module(module):
91
91
must_gather ()
92
92
93
93
94
- @pytest .fixture (scope = "module" )
95
- def postgres_connection ():
94
+ @pytest .fixture (name = "postgres_connection" , scope = "module" )
95
+ def fixture_postgres_connection ():
96
96
"""Fixture with Postgres connection."""
97
97
return retrieve_connection ()
98
98
You can’t perform that action at this time.
0 commit comments