Skip to content

Commit d96377e

Browse files
author
Danny Tundwe (from Dev Box)
committed
Move base64 import to top of test file
- Moved 'import base64' from inside test method to top-level imports - Follows Python best practices for import organization - All imports now grouped at the top of the file
1 parent 79f0a3b commit d96377e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/edge-action/azext_edge_action/tests/latest/test_edge_action.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
55

6+
import base64
67
import os
78
from azure.cli.testsdk import ResourceGroupPreparer, JMESPathCheck, ScenarioTest
89

@@ -145,7 +146,6 @@ def test_edge_action_version_deploy_with_content(self, resource_group):
145146
resource_group, edge_action_name, version_name))
146147

147148
# Test deploy with base64 content
148-
import base64
149149
test_content = base64.b64encode(b'function handler(event) { return event; }').decode('utf-8')
150150
self.cmd('edge-action version deploy-version-code -g {} --edge-action-name {} --version {} --name testcode --content "{}"'.format(
151151
resource_group, edge_action_name, version_name, test_content))

0 commit comments

Comments
 (0)