Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ecommerce
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
ecommerce
Commits
307dd1c2
Commit
307dd1c2
authored
May 18, 2017
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated e2e tests to load configuration from a file
LEARNER-509
parent
8bc847a6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
Makefile
+1
-0
e2e/config.py
+8
-0
e2e/requirements.txt
+1
-0
No files found.
Makefile
View file @
307dd1c2
...
...
@@ -36,6 +36,7 @@ requirements.js:
$(NODE_BIN)
/bower install
--allow-root
requirements
:
requirements.js
pip install
-r
e2e/requirements.txt
--exists-action
w
pip install
-r
requirements/local.txt
--exists-action
w
production-requirements
:
requirements.js
...
...
e2e/config.py
View file @
307dd1c2
import
os
from
os.path
import
dirname
,
join
from
dotenv
import
load_dotenv
from
e2e.utils
import
str2bool
# Load environment variables from an external file. Existing values will take precedence. The variables will be read
# later to configure the tests. See https://github.com/theskumar/python-dotenv.
dotenv_path
=
os
.
environ
.
get
(
'DOTENV_PATH'
,
join
(
dirname
(
__file__
),
'.env'
))
load_dotenv
(
dotenv_path
)
OAUTH_ACCESS_TOKEN_URL
=
os
.
environ
.
get
(
'OAUTH_ACCESS_TOKEN_URL'
)
OAUTH_CLIENT_ID
=
os
.
environ
.
get
(
'OAUTH_CLIENT_ID'
)
OAUTH_CLIENT_SECRET
=
os
.
environ
.
get
(
'OAUTH_CLIENT_SECRET'
)
...
...
e2e/requirements.txt
View file @
307dd1c2
...
...
@@ -4,4 +4,5 @@ ddt==1.1.1
django-nose==1.4.4
edx-rest-api-client==1.7.1
nose-ignore-docstring==0.2
python-dotenv==0.6.4
selenium==3.4.2
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment