Skip to content

Commit ce1123c

Browse files
Merge pull request #21 from khushishah513/function-comments
fixing style error
2 parents 4b1719e + 47ef9ad commit ce1123c

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

src/containerapp/azext_containerapp/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ def get_random_replica(cmd, resource_group_name, container_app_name, revision_na
879879

880880
def execute_function_admin_command(cmd, resource_group_name, name, command, revision_name=None, replica_name=None, container_name=None):
881881
from .custom import containerapp_debug
882-
882+
883883
return containerapp_debug(
884884
cmd=cmd,
885885
resource_group_name=resource_group_name,

src/containerapp/azext_containerapp/containerapp_functions_decorator.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ def get_summary(self):
258258
self.validate_arguments()
259259

260260
# Get arguments
261-
cmd = self.cmd
262261
resource_group_name = self.get_argument_resource_group_name()
263262
container_app_name = self.get_argument_container_app_name()
264263
revision_name = self.get_argument_revision_name()
@@ -290,7 +289,6 @@ def get_traces(self):
290289
self.validate_arguments()
291290

292291
# Get all arguments
293-
cmd = self.cmd
294292
resource_group_name = self.get_argument_resource_group_name()
295293
container_app_name = self.get_argument_container_app_name()
296294
revision_name = self.get_argument_revision_name()

src/containerapp/azext_containerapp/tests/latest/test_containerapp_function.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def test_containerapp_function_list_show_basic(self, resource_group):
6868
@ResourceGroupPreparer(location="northcentralus")
6969
def test_containerapp_function_list_show_error_scenarios(self, resource_group):
7070
"""Test error scenarios for function list command"""
71-
location = "northcentralusstage"
71+
location = TEST_LOCATION
7272
self.cmd('configure --defaults location={}'.format(location))
7373

7474
ca_name = self.create_random_name(prefix='containerapp', length=24)
@@ -133,7 +133,7 @@ def test_containerapp_function_list_show_error_scenarios(self, resource_group):
133133
@ResourceGroupPreparer(location="northcentralus")
134134
def test_containerapp_function_list_show_multirevision_scenarios(self, resource_group):
135135
"""Test multiple revisions scenarios for function list command"""
136-
location = "northcentralusstage"
136+
location = TEST_LOCATION
137137
self.cmd('configure --defaults location={}'.format(location))
138138
env = prepare_containerapp_env_for_app_e2e_tests(self, location=location)
139139

@@ -197,8 +197,8 @@ def test_containerapp_function_list_show_multirevision_scenarios(self, resource_
197197
@ResourceGroupPreparer(location="northcentralus")
198198
def test_containerapp_function_keys(self, resource_group):
199199
"""Test function keys show/list/set functionality"""
200-
location = "northcentralus"
201-
functionapp_location = "northcentralusstage"
200+
location = TEST_LOCATION
201+
functionapp_location = TEST_LOCATION
202202
storage_account_name = self.create_random_name("storageacc", length=24)
203203
funcapp_name = self.create_random_name("functionapp", length=24)
204204
image = "mcr.microsoft.com/azure-functions/dotnet8-quickstart-demo:1.0"
@@ -366,7 +366,7 @@ def test_containerapp_function_keys(self, resource_group):
366366
def test_containerapp_function_invocations_summary_traces(self, resource_group):
367367
"""Test function keys show/list/set functionality using connection string and App Insights"""
368368
location = TEST_LOCATION
369-
functionapp_location = "northcentralusstage"
369+
functionapp_location = TEST_LOCATION
370370
funcapp_name = self.create_random_name("functionapp", length=24)
371371
image = "mcr.microsoft.com/azure-functions/dotnet8-quickstart-demo:1.0"
372372
app_insights_name = self.create_random_name("appinsights", length=24)

0 commit comments

Comments
 (0)