Formatting code extracts (#36670)
* Formatting code extracts
Formatting code extracts
* Update python.md
WARNING: Could not lex literal_block as "python"
diff --git a/docs/testing/python.md b/docs/testing/python.md
index 1db6ff7..a7bec6d 100644
--- a/docs/testing/python.md
+++ b/docs/testing/python.md
@@ -217,7 +217,7 @@
Example:
-```
+```python
Clusters.BasicInformation.Structs.ProductAppearanceStruct(
finish=Clusters.BasicInformation.Enums.ProductFinishEnum.kFabric,
primaryColor=Clusters.BasicInformation.Enums.ColorEnum.kBlack)
@@ -293,7 +293,7 @@
Example:
-```
+```python
urgent = 1
await dev_ctrl ReadEvent(node_id, [(1,
@@ -359,7 +359,7 @@
Example:
-```
+```python
pai = await dev_ctrl.SendCommand(nodeid, 0, Clusters.OperationalCredentials.Commands.CertificateChainRequest(2))
```
@@ -387,7 +387,7 @@
use as:
-```
+```python
if __name__ == "__main__":
default_matter_test_main()
```
@@ -479,7 +479,7 @@
To create a controller on a new fabric:
-```
+```python
new_CA = self.certificate_authority_manager.NewCertificateAuthority()
new_fabric_admin = new_certificate_authority.NewFabricAdmin(vendorId=0xFFF1,
@@ -490,7 +490,7 @@
Open a commissioning window (ECW):
-```
+```python
params = self.OpenCommissioningWindow(dev_ctrl=self.default_controller, node_id=self.dut_node_id)
```
@@ -499,7 +499,7 @@
Fabric admin for default controller:
-```
+```python
fa = self.certificate_authority_manager.activeCaList[0].adminList[0]
second_ctrl = fa.new_fabric_admin.NewController(nodeId=node_id)
```
@@ -577,13 +577,13 @@
First activate the matter environment using either
-```
+```shell
. ./scripts/bootstrap.sh
```
or
-```
+```shell
. ./scripts/activate.sh
```
@@ -592,7 +592,7 @@
Next build the python wheels and create / activate a venv
-```
+```shell
./scripts/build_python.sh -i out/python_env
source out/python_env/bin/activate
```
@@ -609,7 +609,7 @@
For example, to run the TC-ACE-1.2 tests against an un-commissioned DUT:
-```
+```shell
python3 src/python_testing/TC_ACE_1_2.py --commissioning-method on-network --qr-code MT:-24J0AFN00KA0648G00
```
@@ -617,7 +617,7 @@
for the CI). These arguments can be passed as sets of key/value pairs using the
`--<type>-arg:<value>` command line arguments. For example:
-```
+```shell
--int-arg PIXIT.ACE.APPENDPOINT:1 --int-arg PIXIT.ACE.APPDEVTYPEID:0x0100 --string-arg PIXIT.ACE.APPCLUSTER:OnOff --string-arg PIXIT.ACE.APPATTRIBUTE:OnOff
```