Skip to content

Commit 8159afd

Browse files
author
Jesse Whitehouse
committed
Add pytest-dotenv so we can read auth credentials for tests from a file
This follows the pattern of dbt-databricks Signed-off-by: Jesse Whitehouse <[email protected]>
1 parent 0138576 commit 8159afd

File tree

5 files changed

+632
-620
lines changed

5 files changed

+632
-620
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,7 @@ dist/
204204
build/
205205

206206
# vs code stuff
207-
.vscode
207+
.vscode
208+
209+
# don't commit authentication info to source control
210+
test.env

CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,15 @@ export http_path=""
109109
export access_token=""
110110
```
111111

112+
Or you can write these into a file called `test.env` in the root of the repository:
113+
114+
```
115+
host="****.cloud.databricks.com"
116+
http_path="/sql/1.0/warehouses/***"
117+
access_token="dapi***"
118+
staging_ingestion_user="***@example.com"
119+
```
120+
112121
There are several e2e test suites available:
113122
- `PySQLCoreTestSuite`
114123
- `PySQLLargeQueriesSuite`

0 commit comments

Comments
 (0)