Skip to content

Commit 89a10d4

Browse files
committed
Merge branch 'dot-env' into dev
2 parents 7218aaf + 3bd1a9d commit 89a10d4

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,5 @@ docs/_build/
5757
# The test configuration file(s) could potentially contain credentials
5858
tests/config.json
5959

60+
61+
.env

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.
2+
python-dotenv

tests/test_e2e.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
"""If the following ENV VAR are available, many end-to-end test cases would run.
2+
LAB_APP_CLIENT_SECRET=...
3+
LAB_OBO_CLIENT_SECRET=...
4+
LAB_APP_CLIENT_ID=...
5+
LAB_OBO_PUBLIC_CLIENT_ID=...
6+
LAB_OBO_CONFIDENTIAL_CLIENT_ID=...
7+
"""
8+
try:
9+
from dotenv import load_dotenv # Use this only in local dev machine
10+
load_dotenv() # take environment variables from .env.
11+
except:
12+
pass
13+
114
import logging
215
import os
316
import json

0 commit comments

Comments
 (0)