Bug 1825116 - whitespace fixes. r=jajohnson

Differential Revision: https://phabricator.services.mozilla.com/D201566
This commit is contained in:
Julien Cristau 2024-02-12 13:23:06 +01:00
Родитель a9a44907c8
Коммит adb5761c1a
3 изменённых файлов: 12 добавлений и 12 удалений

Просмотреть файл

@ -4,21 +4,21 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
"""
This script contains utility functions designed to support the integration of automated
testing processes with TestRail, a test case management tool. The primary focus is on
creating and managing milestones in TestRail based on automated smoke tests for product
releases. It includes functions for building milestone names and descriptions, determining
This script contains utility functions designed to support the integration of automated
testing processes with TestRail, a test case management tool. The primary focus is on
creating and managing milestones in TestRail based on automated smoke tests for product
releases. It includes functions for building milestone names and descriptions, determining
release types, and loading TestRail credentials.
Functions:
- build_milestone_name(product_type, release_type, version_number): Constructs a formatted
- build_milestone_name(product_type, release_type, version_number): Constructs a formatted
milestone name based on the product type, release type, and version number.
- build_milestone_description(milestone_name): Generates a detailed description for the
- build_milestone_description(milestone_name): Generates a detailed description for the
milestone, including the release date and placeholders for testing status and QA recommendations.
- get_release_version(): Reads and returns the release version number from a 'version.txt' file.
- get_release_type(version): Determines the release type (e.g., Alpha, Beta, RC) based on
- get_release_type(version): Determines the release type (e.g., Alpha, Beta, RC) based on
the version string.
- load_testrail_credentials(json_file_path): Loads TestRail credentials from a JSON file
- load_testrail_credentials(json_file_path): Loads TestRail credentials from a JSON file
and handles potential errors during the loading process.
"""
@ -46,7 +46,7 @@ def build_milestone_description(milestone_name):
TESTING_SUMMARY\n\n\
Known issues: n/a\n\
New issue: n/a\n\
Verified issue:
Verified issue:
"""
)

Просмотреть файл

@ -19,7 +19,7 @@ The module is intended to be integrated into automated testing and release workf
Required Values for Notifications:
These values are required when calling the `send_success_notification` and `send_slack_notification` functions.
These values are required when calling the `send_success_notification` and `send_slack_notification` functions.
They must be passed as an object with the following keys and their respective values.
Required Keys and Expected Values:
@ -69,7 +69,7 @@ SLACK_SUCCESS_MESSAGE_TEMPLATE = Template(
"text": "New Release: :firefox: $SHIPPING_PRODUCT-v$RELEASE_VERSION :star:"
}
},
{
{
"type": "divider"
},
{

Просмотреть файл

@ -4,7 +4,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
"""
This Python script automates creating milestones and test runs in TestRail and updating
This Python script automates creating milestones and test runs in TestRail and updating
test cases based on the results of automated smoke tests for different product releases.
Functionality includes: