Skip to content

Commit c0dad65

Browse files
committed
tests
1 parent 28cb2fc commit c0dad65

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

tools/azure-sdk-tools/linting_tools/lint_test_bench/test_files/test_client_method_missing_tracing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
55
from typing import List
6-
# This code violates client-method-missing-tracing-decoration
6+
# This code violates client-method-has-tracing-decorator
77
class Some2Client():
88
def get_thing(self) -> List[str]:
9-
return []
9+
return []

tools/azure-sdk-tools/linting_tools/lint_test_bench/test_files/test_do_not_hardcode_conn_verify.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@
44
# This code violates do-not-harcode-connection-verify
55

66

7-
class FunctionKeywordArgumentsErrors:
8-
def create(self, x, connection_verify):
9-
if connection_verify:
10-
return x+1
11-
return x
7+
from azure.core.pipeline.transport import RequestsTransport
128

13-
def run(self):
14-
client = self.create(connection_verify=False, x=0)
15-
return client
9+
def create_client():
10+
transport = RequestsTransport(connection_verify=False) # Hardcoded to False
11+
return transport

0 commit comments

Comments
 (0)