Skip to content

Commit 01b1675

Browse files
Add .env usage documentation for local testing
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 6558d58 commit 01b1675

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

CLAUDE.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,18 @@ def method_name(self, param1: str, param2: Optional[int] = None) -> List[str]:
134134
To run tests locally, you need to set the following environment variables:
135135

136136
```bash
137-
export AWS_DEFAULT_REGION=us-west-2
138-
export AWS_ATHENA_S3_STAGING_DIR=s3://your-staging-bucket/path/
139-
export AWS_ATHENA_WORKGROUP=primary
140-
export AWS_ATHENA_SPARK_WORKGROUP=spark-primary
137+
export AWS_DEFAULT_REGION=<your-region>
138+
export AWS_ATHENA_S3_STAGING_DIR=s3://<your-bucket>/<path>/
139+
export AWS_ATHENA_WORKGROUP=<your-workgroup>
140+
export AWS_ATHENA_SPARK_WORKGROUP=<your-spark-workgroup>
141+
```
142+
143+
**Using .env file (Recommended)**:
144+
Create a `.env` file in the project root (already in `.gitignore`) with your AWS settings, then load it before running tests:
145+
146+
```bash
147+
# Load .env and run tests
148+
export $(cat .env | xargs) && uv run pytest tests/pyathena/test_file.py -v
141149
```
142150

143151
**CRITICAL: Pre-test Requirements**
@@ -147,7 +155,7 @@ make chk
147155

148156
# Only after lint passes, install dependencies and run tests
149157
uv sync
150-
uv run pytest tests/pyathena/test_file.py -v
158+
export $(cat .env | xargs) && uv run pytest tests/pyathena/test_file.py -v
151159
```
152160

153161
#### Writing Tests

0 commit comments

Comments
 (0)