From 8599469df52d084e371d1b8b765db84eb918b168 Mon Sep 17 00:00:00 2001
From: Vatsal Ghelani <152916324+vatsalghelani-csa@users.noreply.github.com>
Date: Tue, 2 Jul 2024 16:25:45 -0400
Subject: [PATCH 01/15] Create python_test_arguments.txt

---
 docs/testing/python_test_arguments.txt | 43 ++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 docs/testing/python_test_arguments.txt

diff --git a/docs/testing/python_test_arguments.txt b/docs/testing/python_test_arguments.txt
new file mode 100644
index 00000000000000..abebb4e968cc03
--- /dev/null
+++ b/docs/testing/python_test_arguments.txt
@@ -0,0 +1,43 @@
+Defining Arguments in the Test Script
+
+In order to streamline the configuration and execution of tests, it is essential to define arguments at the top of the test script. This section should include various parameters and their respective values, which will guide the test runner on how to execute the tests.
+
+Below is the format of how to define these arguments:
+# test-runner-runs: <run_identifier>
+# test-runner-run/<run_identifier>/app: ${ALL_CLUSTERS_APP}
+# test-runner-run/<run_identifier>/factoryreset: <True|False>
+# test-runner-run/<run_identifier>/quiet: <True|False>
+# test-runner-run/<run_identifier>/app-args: <app_arguments>
+# test-runner-run/<run_identifier>/script-args: <script_arguments>
+
+
+Below is the format of how to define these arguments:
+# test-runner-runs: run1
+# test-runner-run/run1/app: ${ALL_CLUSTERS_APP}
+# test-runner-run/run1/factoryreset: True
+# test-runner-run/run1/quiet: True
+# test-runner-run/run1/app-args: --discriminator 1234 --KVS kvs1 --trace-to json:${TRACE_APP}.json
+# test-runner-run/run1/script-args: --storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --trace-to json:${TRACE_TEST_JSON}.json --trace-to perfetto:${TRACE_TEST_PERFETTO}.perfetto
+
+
+
+Description of Parameters:
+test-runner-runs: Specifies the identifier for the run. This can be any unique identifier.
+Example: run1
+
+test-runner-run/<run_identifier>/app: Indicates the application to be used in the test.
+Example: ${ALL_CLUSTERS_APP}
+
+test-runner-run/<run_identifier>/factoryreset: Determines whether a factory reset should be performed before the test.
+Example: True
+
+test-runner-run/<run_identifier>/quiet: Sets the verbosity level of the test run. When set to True, the test run will be quieter.
+Example: True
+
+test-runner-run/<run_identifier>/app-args: Specifies the arguments to be passed to the application during the test.
+Example: --discriminator 1234 --KVS kvs1 --trace-to json:${TRACE_APP}.json
+
+test-runner-run/<run_identifier>/script-args: Specifies the arguments to be passed to the test script.
+Example: --storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --trace-to json:${TRACE_TEST_JSON}.json --trace-to perfetto:${TRACE_TEST_PERFETTO}.perfetto
+
+This structured format ensures that all necessary configurations are clearly defined and easily understood, allowing for consistent and reliable test execution.

From ab69fec4f6aa1e5361dece2bd5001c0c65dbac6e Mon Sep 17 00:00:00 2001
From: Vatsal Ghelani <152916324+vatsalghelani-csa@users.noreply.github.com>
Date: Tue, 2 Jul 2024 16:29:51 -0400
Subject: [PATCH 02/15] Fixed runner code that 0 runs are an error

---
 scripts/tests/run_python_test.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/tests/run_python_test.py b/scripts/tests/run_python_test.py
index 5ccd67a987a401..766cadf935ab00 100755
--- a/scripts/tests/run_python_test.py
+++ b/scripts/tests/run_python_test.py
@@ -110,6 +110,9 @@ def main(app: str, factoryreset: bool, factoryreset_app_only: bool, app_args: st
             )
         ]
 
+    if not runs:
+        raise Exception("No valid runs were found. Make sure you add runs to your file, see docs/testing/python_test_arguments.txt document for reference/example.")
+
     for run in runs:
         print(f"Executing {run.py_script_path.split('/')[-1]} {run.run}")
         main_impl(run.app, run.factoryreset, run.factoryreset_app_only, run.app_args,

From 675a45040cdc7514a5c7e622d59338a9ee1bdbf9 Mon Sep 17 00:00:00 2001
From: "Restyled.io" <commits@restyled.io>
Date: Tue, 2 Jul 2024 21:02:55 +0000
Subject: [PATCH 03/15] Restyled by autopep8

---
 scripts/tests/run_python_test.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/tests/run_python_test.py b/scripts/tests/run_python_test.py
index 766cadf935ab00..d952bfe2c47a4d 100755
--- a/scripts/tests/run_python_test.py
+++ b/scripts/tests/run_python_test.py
@@ -111,7 +111,8 @@ def main(app: str, factoryreset: bool, factoryreset_app_only: bool, app_args: st
         ]
 
     if not runs:
-        raise Exception("No valid runs were found. Make sure you add runs to your file, see docs/testing/python_test_arguments.txt document for reference/example.")
+        raise Exception(
+            "No valid runs were found. Make sure you add runs to your file, see docs/testing/python_test_arguments.txt document for reference/example.")
 
     for run in runs:
         print(f"Executing {run.py_script_path.split('/')[-1]} {run.run}")

From ceeaff62d53148222ee1aa99c584a5acf0d94a6e Mon Sep 17 00:00:00 2001
From: Vatsal Ghelani <152916324+vatsalghelani-csa@users.noreply.github.com>
Date: Wed, 3 Jul 2024 09:00:44 -0400
Subject: [PATCH 04/15] Update hello_test.py

---
 src/python_testing/hello_test.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/python_testing/hello_test.py b/src/python_testing/hello_test.py
index d6953bf3912c11..01657bf1bded6a 100644
--- a/src/python_testing/hello_test.py
+++ b/src/python_testing/hello_test.py
@@ -15,6 +15,13 @@
 #    limitations under the License.
 #
 
+# test-runner-runs: run1
+# test-runner-run/run1/app: ${TYPE_OF_APP}
+# test-runner-run/run1/factoryreset: True
+# test-runner-run/run1/quiet: True
+# test-runner-run/run1/app-args: --discriminator 1234 --KVS kvs1 --trace-to json:${TRACE_APP}.json
+# test-runner-run/run1/script-args: --storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --trace-to json:${TRACE_TEST_JSON}.json --trace-to perfetto:${TRACE_TEST_PERFETTO}.perfetto
+
 import logging
 
 import chip.clusters as Clusters

From fdbc3294029ef1ec57b4e93bdb1535861b703c89 Mon Sep 17 00:00:00 2001
From: Vatsal Ghelani <152916324+vatsalghelani-csa@users.noreply.github.com>
Date: Wed, 3 Jul 2024 09:01:12 -0400
Subject: [PATCH 05/15] Update python_test_arguments.txt

---
 docs/testing/python_test_arguments.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/testing/python_test_arguments.txt b/docs/testing/python_test_arguments.txt
index abebb4e968cc03..40e20557fa74b5 100644
--- a/docs/testing/python_test_arguments.txt
+++ b/docs/testing/python_test_arguments.txt
@@ -4,7 +4,7 @@ In order to streamline the configuration and execution of tests, it is essential
 
 Below is the format of how to define these arguments:
 # test-runner-runs: <run_identifier>
-# test-runner-run/<run_identifier>/app: ${ALL_CLUSTERS_APP}
+# test-runner-run/<run_identifier>/app: ${TYPE_OF_APP}
 # test-runner-run/<run_identifier>/factoryreset: <True|False>
 # test-runner-run/<run_identifier>/quiet: <True|False>
 # test-runner-run/<run_identifier>/app-args: <app_arguments>

From 4d0437d8605080cd3487e88ef722fbdee0cb3231 Mon Sep 17 00:00:00 2001
From: Vatsal Ghelani <152916324+vatsalghelani-csa@users.noreply.github.com>
Date: Wed, 3 Jul 2024 09:15:47 -0400
Subject: [PATCH 06/15] Update python.md

---
 docs/testing/python.md | 44 +++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 43 insertions(+), 1 deletion(-)

diff --git a/docs/testing/python.md b/docs/testing/python.md
index 51f734ace3ab15..33677146acd5ba 100644
--- a/docs/testing/python.md
+++ b/docs/testing/python.md
@@ -19,6 +19,8 @@ Python tests located in src/python_testing
 
 ## Writing Python tests
 
+-   Defining arguments in the test script
+    -   In order to streamline the configuration and execution of tests, it is essential to define arguments at the top of the test script. This section should include various parameters and their respective values, which will guide the test runner on how to execute the tests.
 -   All test classes inherit from MatterBaseTest in
     [matter_testing_support.py](https://github.com/project-chip/connectedhomeip/blob/master/src/python_testing/matter_testing_support.py)
     -   support for commissioning using the python controller
@@ -36,11 +38,17 @@ Python tests located in src/python_testing
 -   Use Mobly assertions for failing tests
 -   self.step() along with a steps\_ function to mark test plan steps for cert
     tests
--
 
 ### A simple test
 
 ```
+# test-runner-runs: run1
+# test-runner-run/run1/app: ${ALL_CLUSTERS_APP}
+# test-runner-run/run1/factoryreset: True
+# test-runner-run/run1/quiet: True
+# test-runner-run/run1/app-args: --discriminator 1234 --KVS kvs1 --trace-to json:${TRACE_APP}.json
+# test-runner-run/run1/script-args: --storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --trace-to json:${TRACE_TEST_JSON}.json --trace-to perfetto:${TRACE_TEST_PERFETTO}.perfetto
+
 class TC_MYTEST_1_1(MatterBaseTest):
 
     @async_test_body
@@ -74,6 +82,40 @@ The default_matter_test_main() function is used to run the test on the command
 line. These two lines should appear verbatim at the bottom of every python test
 file.
 
+
+## Defining the arguments
+Below is the format:
+```
+# test-runner-runs: <run_identifier>
+# test-runner-run/<run_identifier>/app: ${TYPE_OF_APP}
+# test-runner-run/<run_identifier>/factoryreset: <True|False>
+# test-runner-run/<run_identifier>/quiet: <True|False>
+# test-runner-run/<run_identifier>/app-args: <app_arguments>
+# test-runner-run/<run_identifier>/script-args: <script_arguments>
+```
+
+### Description of Parameters
+-   test-runner-runs: Specifies the identifier for the run. This can be any unique identifier.
+    -   Example: run1
+
+-   test-runner-run/<run_identifier>/app: Indicates the application to be used in the test.
+    -   Example: ${ALL_CLUSTERS_APP}
+
+-   test-runner-run/<run_identifier>/factoryreset: Determines whether a factory reset should be performed before the test.
+    -   Example: True
+
+-   test-runner-run/<run_identifier>/quiet: Sets the verbosity level of the test run. When set to True, the test run will be quieter.
+    -   Example: True
+
+-   test-runner-run/<run_identifier>/app-args: Specifies the arguments to be passed to the application during the test.
+    -   Example: --discriminator 1234 --KVS kvs1 --trace-to json:${TRACE_APP}.json
+
+-   test-runner-run/<run_identifier>/script-args: Specifies the arguments to be passed to the test script.
+    -   Example: --storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --trace-to json:${TRACE_TEST_JSON}.json --trace-to perfetto:${TRACE_TEST_PERFETTO}.perfetto
+
+This structured format ensures that all necessary configurations are clearly defined and easily understood, allowing for consistent and reliable test execution.
+
+
 ## Cluster Codegen
 
 -   [Objects.py](https://github.com/project-chip/connectedhomeip/blob/master/src/controller/python/chip/clusters/Objects.py)

From 09471f6fc8ae5cb747c258a7d0ce451d2f40f18c Mon Sep 17 00:00:00 2001
From: Vatsal Ghelani <152916324+vatsalghelani-csa@users.noreply.github.com>
Date: Wed, 3 Jul 2024 09:16:22 -0400
Subject: [PATCH 07/15] Update python.md

---
 docs/testing/python.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/testing/python.md b/docs/testing/python.md
index 33677146acd5ba..d9e31cbce20e96 100644
--- a/docs/testing/python.md
+++ b/docs/testing/python.md
@@ -83,7 +83,7 @@ line. These two lines should appear verbatim at the bottom of every python test
 file.
 
 
-## Defining the arguments
+## Defining the test arguments
 Below is the format:
 ```
 # test-runner-runs: <run_identifier>

From 8e5fd035b63a52806320fe06d4a0852b1cf59918 Mon Sep 17 00:00:00 2001
From: Vatsal Ghelani <152916324+vatsalghelani-csa@users.noreply.github.com>
Date: Wed, 3 Jul 2024 09:17:17 -0400
Subject: [PATCH 08/15] Delete docs/testing/python_test_arguments.txt

---
 docs/testing/python_test_arguments.txt | 43 --------------------------
 1 file changed, 43 deletions(-)
 delete mode 100644 docs/testing/python_test_arguments.txt

diff --git a/docs/testing/python_test_arguments.txt b/docs/testing/python_test_arguments.txt
deleted file mode 100644
index 40e20557fa74b5..00000000000000
--- a/docs/testing/python_test_arguments.txt
+++ /dev/null
@@ -1,43 +0,0 @@
-Defining Arguments in the Test Script
-
-In order to streamline the configuration and execution of tests, it is essential to define arguments at the top of the test script. This section should include various parameters and their respective values, which will guide the test runner on how to execute the tests.
-
-Below is the format of how to define these arguments:
-# test-runner-runs: <run_identifier>
-# test-runner-run/<run_identifier>/app: ${TYPE_OF_APP}
-# test-runner-run/<run_identifier>/factoryreset: <True|False>
-# test-runner-run/<run_identifier>/quiet: <True|False>
-# test-runner-run/<run_identifier>/app-args: <app_arguments>
-# test-runner-run/<run_identifier>/script-args: <script_arguments>
-
-
-Below is the format of how to define these arguments:
-# test-runner-runs: run1
-# test-runner-run/run1/app: ${ALL_CLUSTERS_APP}
-# test-runner-run/run1/factoryreset: True
-# test-runner-run/run1/quiet: True
-# test-runner-run/run1/app-args: --discriminator 1234 --KVS kvs1 --trace-to json:${TRACE_APP}.json
-# test-runner-run/run1/script-args: --storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --trace-to json:${TRACE_TEST_JSON}.json --trace-to perfetto:${TRACE_TEST_PERFETTO}.perfetto
-
-
-
-Description of Parameters:
-test-runner-runs: Specifies the identifier for the run. This can be any unique identifier.
-Example: run1
-
-test-runner-run/<run_identifier>/app: Indicates the application to be used in the test.
-Example: ${ALL_CLUSTERS_APP}
-
-test-runner-run/<run_identifier>/factoryreset: Determines whether a factory reset should be performed before the test.
-Example: True
-
-test-runner-run/<run_identifier>/quiet: Sets the verbosity level of the test run. When set to True, the test run will be quieter.
-Example: True
-
-test-runner-run/<run_identifier>/app-args: Specifies the arguments to be passed to the application during the test.
-Example: --discriminator 1234 --KVS kvs1 --trace-to json:${TRACE_APP}.json
-
-test-runner-run/<run_identifier>/script-args: Specifies the arguments to be passed to the test script.
-Example: --storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --trace-to json:${TRACE_TEST_JSON}.json --trace-to perfetto:${TRACE_TEST_PERFETTO}.perfetto
-
-This structured format ensures that all necessary configurations are clearly defined and easily understood, allowing for consistent and reliable test execution.

From 53765ed2078ac4a8f6a4777ad0e9c14b91dc780d Mon Sep 17 00:00:00 2001
From: "Restyled.io" <commits@restyled.io>
Date: Wed, 3 Jul 2024 13:17:35 +0000
Subject: [PATCH 09/15] Restyled by prettier-markdown

---
 docs/testing/python.md | 44 ++++++++++++++++++++++++++++++------------
 1 file changed, 32 insertions(+), 12 deletions(-)

diff --git a/docs/testing/python.md b/docs/testing/python.md
index d9e31cbce20e96..daea1965c9d0ce 100644
--- a/docs/testing/python.md
+++ b/docs/testing/python.md
@@ -20,7 +20,10 @@ Python tests located in src/python_testing
 ## Writing Python tests
 
 -   Defining arguments in the test script
-    -   In order to streamline the configuration and execution of tests, it is essential to define arguments at the top of the test script. This section should include various parameters and their respective values, which will guide the test runner on how to execute the tests.
+    -   In order to streamline the configuration and execution of tests, it is
+        essential to define arguments at the top of the test script. This
+        section should include various parameters and their respective values,
+        which will guide the test runner on how to execute the tests.
 -   All test classes inherit from MatterBaseTest in
     [matter_testing_support.py](https://github.com/project-chip/connectedhomeip/blob/master/src/python_testing/matter_testing_support.py)
     -   support for commissioning using the python controller
@@ -82,9 +85,10 @@ The default_matter_test_main() function is used to run the test on the command
 line. These two lines should appear verbatim at the bottom of every python test
 file.
 
-
 ## Defining the test arguments
+
 Below is the format:
+
 ```
 # test-runner-runs: <run_identifier>
 # test-runner-run/<run_identifier>/app: ${TYPE_OF_APP}
@@ -95,26 +99,42 @@ Below is the format:
 ```
 
 ### Description of Parameters
--   test-runner-runs: Specifies the identifier for the run. This can be any unique identifier.
+
+-   test-runner-runs: Specifies the identifier for the run. This can be any
+    unique identifier.
+
     -   Example: run1
 
--   test-runner-run/<run_identifier>/app: Indicates the application to be used in the test.
-    -   Example: ${ALL_CLUSTERS_APP}
+-   test-runner-run/<run_identifier>/app: Indicates the application to be used
+    in the test.
+
+    -   Example: \${ALL_CLUSTERS_APP}
+
+-   test-runner-run/<run_identifier>/factoryreset: Determines whether a factory
+    reset should be performed before the test.
 
--   test-runner-run/<run_identifier>/factoryreset: Determines whether a factory reset should be performed before the test.
     -   Example: True
 
--   test-runner-run/<run_identifier>/quiet: Sets the verbosity level of the test run. When set to True, the test run will be quieter.
+-   test-runner-run/<run_identifier>/quiet: Sets the verbosity level of the test
+    run. When set to True, the test run will be quieter.
+
     -   Example: True
 
--   test-runner-run/<run_identifier>/app-args: Specifies the arguments to be passed to the application during the test.
-    -   Example: --discriminator 1234 --KVS kvs1 --trace-to json:${TRACE_APP}.json
+-   test-runner-run/<run_identifier>/app-args: Specifies the arguments to be
+    passed to the application during the test.
 
--   test-runner-run/<run_identifier>/script-args: Specifies the arguments to be passed to the test script.
-    -   Example: --storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --trace-to json:${TRACE_TEST_JSON}.json --trace-to perfetto:${TRACE_TEST_PERFETTO}.perfetto
+    -   Example: --discriminator 1234 --KVS kvs1 --trace-to
+        json:\${TRACE_APP}.json
 
-This structured format ensures that all necessary configurations are clearly defined and easily understood, allowing for consistent and reliable test execution.
+-   test-runner-run/<run_identifier>/script-args: Specifies the arguments to be
+    passed to the test script.
+    -   Example: --storage-path admin_storage.json --commissioning-method
+        on-network --discriminator 1234 --passcode 20202021 --trace-to
+        json:${TRACE_TEST_JSON}.json --trace-to perfetto:${TRACE_TEST_PERFETTO}.perfetto
 
+This structured format ensures that all necessary configurations are clearly
+defined and easily understood, allowing for consistent and reliable test
+execution.
 
 ## Cluster Codegen
 

From 01dbe14a326625a9b905c31076d7680c9af70c83 Mon Sep 17 00:00:00 2001
From: Vatsal Ghelani <152916324+vatsalghelani-csa@users.noreply.github.com>
Date: Wed, 3 Jul 2024 09:57:12 -0400
Subject: [PATCH 10/15] Update python.md

---
 docs/testing/python.md | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/docs/testing/python.md b/docs/testing/python.md
index daea1965c9d0ce..72e48da7750687 100644
--- a/docs/testing/python.md
+++ b/docs/testing/python.md
@@ -106,9 +106,10 @@ Below is the format:
     -   Example: run1
 
 -   test-runner-run/<run_identifier>/app: Indicates the application to be used
-    in the test.
+    in the test. Different app types could be referenced from section [name: Generate an argument environment file
+] of the file .github/workflows/tests.yaml
 
-    -   Example: \${ALL_CLUSTERS_APP}
+    -   Example: \${TYPE_OF_APP} 
 
 -   test-runner-run/<run_identifier>/factoryreset: Determines whether a factory
     reset should be performed before the test.

From c753e55a4a60a8c2e1067cf3d5584a720cf5772d Mon Sep 17 00:00:00 2001
From: Vatsal Ghelani <152916324+vatsalghelani-csa@users.noreply.github.com>
Date: Wed, 3 Jul 2024 09:57:50 -0400
Subject: [PATCH 11/15] Update python.md

---
 docs/testing/python.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/testing/python.md b/docs/testing/python.md
index 72e48da7750687..3b34cb7c3caf65 100644
--- a/docs/testing/python.md
+++ b/docs/testing/python.md
@@ -106,7 +106,7 @@ Below is the format:
     -   Example: run1
 
 -   test-runner-run/<run_identifier>/app: Indicates the application to be used
-    in the test. Different app types could be referenced from section [name: Generate an argument environment file
+    in the test. Different app types as needed could be referenced from section [name: Generate an argument environment file
 ] of the file .github/workflows/tests.yaml
 
     -   Example: \${TYPE_OF_APP} 

From 59f0be343beb804fbf1ae0a1480d8e86f0694c2f Mon Sep 17 00:00:00 2001
From: Vatsal Ghelani <152916324+vatsalghelani-csa@users.noreply.github.com>
Date: Wed, 3 Jul 2024 09:59:28 -0400
Subject: [PATCH 12/15] Update run_python_test.py

---
 scripts/tests/run_python_test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/tests/run_python_test.py b/scripts/tests/run_python_test.py
index d952bfe2c47a4d..7d7500c10f5a11 100755
--- a/scripts/tests/run_python_test.py
+++ b/scripts/tests/run_python_test.py
@@ -112,7 +112,7 @@ def main(app: str, factoryreset: bool, factoryreset_app_only: bool, app_args: st
 
     if not runs:
         raise Exception(
-            "No valid runs were found. Make sure you add runs to your file, see docs/testing/python_test_arguments.txt document for reference/example.")
+            "No valid runs were found. Make sure you add runs to your file, see https://github.com/project-chip/connectedhomeip/blob/master/docs/testing/python.md document for reference/example.")
 
     for run in runs:
         print(f"Executing {run.py_script_path.split('/')[-1]} {run.run}")

From 23a54c9356f7fe90eb70a33070921d21f58d47a5 Mon Sep 17 00:00:00 2001
From: "Restyled.io" <commits@restyled.io>
Date: Wed, 3 Jul 2024 13:59:55 +0000
Subject: [PATCH 13/15] Restyled by prettier-markdown

---
 docs/testing/python.md | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/docs/testing/python.md b/docs/testing/python.md
index 3b34cb7c3caf65..d69b608e533784 100644
--- a/docs/testing/python.md
+++ b/docs/testing/python.md
@@ -106,10 +106,11 @@ Below is the format:
     -   Example: run1
 
 -   test-runner-run/<run_identifier>/app: Indicates the application to be used
-    in the test. Different app types as needed could be referenced from section [name: Generate an argument environment file
-] of the file .github/workflows/tests.yaml
+    in the test. Different app types as needed could be referenced from section
+    [name: Generate an argument environment file ] of the file
+    .github/workflows/tests.yaml
 
-    -   Example: \${TYPE_OF_APP} 
+        -   Example: \${TYPE_OF_APP}
 
 -   test-runner-run/<run_identifier>/factoryreset: Determines whether a factory
     reset should be performed before the test.

From 93442b2653febeacab4315fe7613ca01538b70af Mon Sep 17 00:00:00 2001
From: Vatsal Ghelani <152916324+vatsalghelani-csa@users.noreply.github.com>
Date: Wed, 3 Jul 2024 10:24:31 -0400
Subject: [PATCH 14/15] Update python.md

---
 docs/testing/python.md | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/docs/testing/python.md b/docs/testing/python.md
index d69b608e533784..0afddb6e32de27 100644
--- a/docs/testing/python.md
+++ b/docs/testing/python.md
@@ -107,8 +107,7 @@ Below is the format:
 
 -   test-runner-run/<run_identifier>/app: Indicates the application to be used
     in the test. Different app types as needed could be referenced from section
-    [name: Generate an argument environment file ] of the file
-    .github/workflows/tests.yaml
+    [name: Generate an argument environment file ] of the file [.github/workflows/tests.yaml](https://github.com/project-chip/connectedhomeip/blob/master/.github/workflows/tests.yaml)
 
         -   Example: \${TYPE_OF_APP}
 

From 1e36b124012dd61642d0a59d6a6bdcf20cd52c04 Mon Sep 17 00:00:00 2001
From: "Restyled.io" <commits@restyled.io>
Date: Wed, 3 Jul 2024 14:24:50 +0000
Subject: [PATCH 15/15] Restyled by prettier-markdown

---
 docs/testing/python.md | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/docs/testing/python.md b/docs/testing/python.md
index 0afddb6e32de27..06051fee4fb33b 100644
--- a/docs/testing/python.md
+++ b/docs/testing/python.md
@@ -107,7 +107,8 @@ Below is the format:
 
 -   test-runner-run/<run_identifier>/app: Indicates the application to be used
     in the test. Different app types as needed could be referenced from section
-    [name: Generate an argument environment file ] of the file [.github/workflows/tests.yaml](https://github.com/project-chip/connectedhomeip/blob/master/.github/workflows/tests.yaml)
+    [name: Generate an argument environment file ] of the file
+    [.github/workflows/tests.yaml](https://github.com/project-chip/connectedhomeip/blob/master/.github/workflows/tests.yaml)
 
         -   Example: \${TYPE_OF_APP}