avocado-framework / avocado

Avocado is a set of tools and libraries to help with automated testing. One can call it a test framework with benefits. Native tests are written in Python and they follow the unittest pattern, but any executable can serve as a test.
https://avocado-framework.github.io/
Other
336 stars 335 forks source link

Method modification for obtaining container information #5974

Open ut003460 opened 1 week ago

ut003460 commented 1 week ago

1.Exception message improvement Change the f "Failed getting information about container:" f "{container_id}." that concatenates two strings together to a single string to avoid unnecessary string concatenation 2.Replace container ["Id"] with container. get ("Id") to avoid throwing KeyError when the "Id" key is missing in the dictionary

ut003460 commented 1 week ago

Okay, thank you for your suggestion. I have resubmitted it

richtja commented 1 week ago

Okay, thank you for your suggestion. I have resubmitted it

Hi @ut003460, is there any reason for removing your changes instead of splitting them into two commits as @clebergnu proposed?

ut003460 commented 1 week ago

Okay, thank you for your suggestion. I have resubmitted it

Hi @ut003460, is there any reason for removing your changes instead of splitting them into two commits as @clebergnu proposed?

Okay, maybe I misunderstood. Could you please check if this submission is correct?