This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
189 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ UI-level acceptance test framework. | |
guidelines | ||
accessibility | ||
visual_diff | ||
xss | ||
api_reference | ||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Indirect dependencies first | ||
|
||
# needle (selenium is also used directly, and nose for tests) | ||
nose==1.3.7 | ||
Pillow==3.2.0 | ||
selenium==2.53.5 | ||
|
||
# Then the direct dependencies | ||
|
||
# For lazy evaluation of the page object's a11y_audit attribute | ||
lazy==1.2 | ||
|
||
# For test assertions involving screenshots and visual diffs | ||
needle==0.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Indirect dependencies first | ||
|
||
# babel | ||
pytz==2016.4 | ||
|
||
# bleach, html5lib, readme_renderer, Sphinx | ||
six==1.10.0 | ||
|
||
# Jinja2 | ||
MarkupSafe==0.23 | ||
|
||
# readme_renderer, Sphinx | ||
docutils==0.12 | ||
Pygments==2.1.3 | ||
|
||
# readme_renderer | ||
bleach==1.4.3 | ||
html5lib==0.9999999 | ||
|
||
# Sphinx | ||
alabaster==0.7.8 | ||
babel==2.3.4 | ||
imagesize==0.7.1 | ||
Jinja2==2.8 | ||
snowballstemmer==1.2.1 | ||
|
||
# Then the direct dependencies | ||
|
||
# For verifying that the README will display correctly on PyPI | ||
readme_renderer==0.7.0 | ||
|
||
# Documentation generator | ||
Sphinx==1.4.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Indirect dependencies first | ||
|
||
# astroid, edx-lint | ||
six==1.10.0 | ||
|
||
# astroid | ||
lazy-object-proxy==1.2.2 | ||
wrapt==1.10.8 | ||
|
||
# pylint | ||
colorama==0.3.7 | ||
|
||
# pylint-plugin-utils | ||
astroid==1.4.6 | ||
pylint==1.5.4 | ||
|
||
# pylint-celery, pylint-django | ||
pylint-plugin-utils | ||
|
||
# edx-lint | ||
pylint-celery==0.3 | ||
pylint-django==0.7.2 | ||
|
||
# Then the direct dependencies | ||
|
||
# For code coverage statistics | ||
coverage==3.7 | ||
|
||
# pylint plug-ins for additional code quality checks | ||
edx_lint==0.5.1 | ||
|
||
# For mocking functionality in assorted tests | ||
mock==1.0.1 | ||
|
||
# Test runner | ||
nose==1.3.7 | ||
|
||
# For checking compliance with PEP 8 coding style guidelines | ||
pycodestyle==2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Packages needed in order to run tox. | ||
# Installed by Travis and dev environments. | ||
|
||
# tox dependencies | ||
pluggy==0.3.1 | ||
py==1.4.31 | ||
virtualenv==15.0.2 | ||
|
||
# For managing test environments | ||
tox==2.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
#!/usr/bin/env python | ||
|
||
import codecs | ||
from setuptools import setup | ||
|
||
VERSION = '0.5.3' | ||
DESCRIPTION = 'UI-level acceptance test framework' | ||
with open('requirements.txt') as f: | ||
REQUIREMENTS = f.read().splitlines() | ||
REQUIREMENTS = ( | ||
'lazy', | ||
'needle', | ||
'selenium', | ||
) | ||
|
||
with codecs.open('README.rst', 'r', 'utf-8') as f: | ||
LONG_DESCRIPTION = f.read() | ||
|
||
setup( | ||
name='bok_choy', | ||
version=VERSION, | ||
author='edX', | ||
author_email='[email protected]', | ||
url='http://github.com/edx/bok-choy', | ||
description=DESCRIPTION, | ||
long_description=LONG_DESCRIPTION, | ||
license='Apache 2.0', | ||
classifiers=['Development Status :: 3 - Alpha', | ||
'Environment :: Console', | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
[tox] | ||
envlist = py{27,35,py,py3} | ||
|
||
[testenv] | ||
deps = | ||
-r{toxinidir}/requirements/base.txt | ||
-r{toxinidir}/requirements/test.txt | ||
passenv = | ||
DISPLAY | ||
setenv = | ||
SCREENSHOT_DIR={toxinidir}/logs | ||
SELENIUM_DRIVER_LOG_DIR={toxinidir}/logs | ||
SERVER_PORT=8005 | ||
whitelist_externals = | ||
mkdir | ||
rm | ||
commands = | ||
pip install --quiet --requirement requirements/base.txt | ||
pip install --quiet --requirement requirements/test.txt | ||
pylint bok_choy | ||
pycodestyle bok_choy | ||
pycodestyle tests | ||
mkdir -p $SELENIUM_DRIVER_LOG_DIR | ||
rm -rf $SELENIUM_DRIVER_LOG_DIR/* | ||
{toxinidir}/run_tests.sh {posargs} | ||
coverage report | ||
|
||
[testenv:doc] | ||
deps = | ||
-r{toxinidir}/requirements/base.txt | ||
-r{toxinidir}/requirements/test.txt | ||
-r{toxinidir}/requirements/doc.txt | ||
commands = | ||
pip install --quiet --requirement requirements/base.txt | ||
pip install --quiet --requirement requirements/test.txt | ||
pip install --quiet --requirement requirements/doc.txt | ||
- pip uninstall bok-choy -y | ||
python setup.py install | ||
python docs/code/round_1/test_search.py | ||
python docs/code/round_2/test_search.py | ||
python docs/code/round_3/test_search.py | ||
python setup.py build_sphinx | ||
python setup.py check --restructuredtext --strict |