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
eeaacc6b
Commit
eeaacc6b
authored
Mar 21, 2016
by
Renzo Lucioni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add separate requirements file for acceptance testing
parent
625d192d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
acceptance_tests/pages/coupons.py
+7
-4
acceptance_tests/requirements.txt
+8
-0
requirements/monitoring/requirements.txt
+1
-0
No files found.
acceptance_tests/pages/coupons.py
View file @
eeaacc6b
from
bok_choy.javascript
import
wait_for_js
import
random
# The string module is not deprecated. This is a bug in Pylint: https://www.logilab.org/ticket/2481.
from
factory.fuzzy
import
FuzzyText
import
string
# pylint: disable=deprecated-module
from
bok_choy.javascript
import
wait_for_js
from
selenium.webdriver.common.by
import
By
from
selenium.webdriver.common.by
import
By
from
selenium.webdriver.support
import
expected_conditions
as
EC
from
selenium.webdriver.support
import
expected_conditions
as
EC
from
selenium.webdriver.support.ui
import
WebDriverWait
from
selenium.webdriver.support.ui
import
WebDriverWait
...
@@ -14,7 +15,9 @@ from acceptance_tests.pages.ecommerce import EcommerceAppPage
...
@@ -14,7 +15,9 @@ from acceptance_tests.pages.ecommerce import EcommerceAppPage
def
_get_coupon_name
(
is_discount
):
def
_get_coupon_name
(
is_discount
):
""" Returns an appropriate coupon name. """
""" Returns an appropriate coupon name. """
prefix
=
'test-discount-code-'
if
is_discount
else
'test-enrollment-code-'
prefix
=
'test-discount-code-'
if
is_discount
else
'test-enrollment-code-'
return
FuzzyText
(
length
=
3
,
prefix
=
prefix
)
.
fuzz
()
postfix
=
''
.
join
(
random
.
choice
(
string
.
ascii_letters
)
for
_
in
range
(
3
))
return
prefix
+
postfix
class
BasketPage
(
EcommerceAppPage
):
class
BasketPage
(
EcommerceAppPage
):
...
...
acceptance_tests/requirements.txt
0 → 100644
View file @
eeaacc6b
# Packages required to run acceptance tests
bok-choy==0.5.0
ddt==1.0.1
django-nose==1.4.2
edx-rest-api-client==1.5.0
nose-ignore-docstring==0.2
requests==2.9.1
selenium>=2.53.1
requirements/monitoring/requirements.txt
View file @
eeaacc6b
...
@@ -10,3 +10,4 @@
...
@@ -10,3 +10,4 @@
-r ../optional.txt
-r ../optional.txt
-r ../production.txt
-r ../production.txt
-r ../test.txt
-r ../test.txt
-r ../../acceptance_tests/requirements.txt
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