From 326c9827c3cb581415f84d1d73e40e7ab69e7a70 Mon Sep 17 00:00:00 2001
From: Jason Stirnaman <stirnamanj@gmail.com>
Date: Mon, 30 Dec 2024 11:44:21 -0600
Subject: [PATCH] fix(client-lib): commented code block for test setup #5711 -
 Add CONTRIBUTING.md step for building the influxdata:docs-pytest image before
 running tests.

---
 CONTRIBUTING.md                                      | 11 +++++++++++
 .../reference/client-libraries/v3/python.md          | 12 ++++++++----
 2 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 031707ba1..aad3f3e96 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -57,6 +57,17 @@ Install [Docker](https://docs.docker.com/get-docker/) for your system.
 
 docs-v2 includes Docker configurations (`compose.yaml` and Dockerfiles) for running the Vale style linter and tests for code blocks (Shell, Bash, and Python) in Markdown files.
 
+#### Build the test dependency image
+
+After you have installed Docker, run the following command to build the test
+dependency image, `influxdata:docs-pytest`.
+The tests defined in `compose.yaml` use the dependencies and execution
+environment from this image.
+
+```bash
+docker build -t influxdata:docs-pytest -f Dockerfile.pytest .
+```
+
 ### Run the documentation locally (optional)
 
 To run the documentation locally, follow the instructions provided in the README.
diff --git a/content/influxdb/cloud-dedicated/reference/client-libraries/v3/python.md b/content/influxdb/cloud-dedicated/reference/client-libraries/v3/python.md
index 82a1faef6..50996bd87 100644
--- a/content/influxdb/cloud-dedicated/reference/client-libraries/v3/python.md
+++ b/content/influxdb/cloud-dedicated/reference/client-libraries/v3/python.md
@@ -17,9 +17,9 @@ related:
 list_code_example: >
   
   ```python
-  Example: Writing and querying data
+  # Example: Write and que data
   
-  # The following example demonstrates how to write sensor data into influxDB 
+  # Write sensor data into influxDB
   
   # and retrieve data from the last 90 days for analysis. 
 
@@ -171,10 +171,13 @@ Given that `write_client_options` isn't specified, the client uses the default [
 
 {{% code-placeholders "DATABASE_(NAME|TOKEN)" %}}
 
-<!-- Import for tests and hide from users. -->
-<!--
+<!-- Import for tests and hide from users.
+```python
 import os
+```
 -->
+<!--pytest-codeblocks:cont-->
+
 ```python
 from influxdb_client_3 import InfluxDBClient3
 
@@ -182,6 +185,7 @@ client = InfluxDBClient3(host=f"{{< influxdb/host >}}",
                         database=f"DATABASE_NAME",
                         token=f"DATABASE_TOKEN")
 ```
+
 {{% /code-placeholders %}}
 
 Replace the following: