Skip to content

Fix tests on master #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 25, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ test:
# run test suite in all our python versions
- bash circle/test.sh

# # test that it imports when you don't have file permissions
# - sudo chmod 400 ${PLOTLY_CONFIG_DIR} && python -c "import plotly"
#
# # test that setting permissions will work for import (and tests)
# - sudo chmod 600 ${PLOTLY_CONFIG_DIR} && python -c "import plotly"
# test that it imports when you don't have write permissions
- sudo chmod -R 444 ${PLOTLY_CONFIG_DIR} && python -c "import plotly"

# test that giving back write permissions works again
# this also has to pass the test suite that follows
- sudo chmod -R 777 ${PLOTLY_CONFIG_DIR} && python -c "import plotly"

# test core things in the general 2.7 version that circle has
- nosetests -xv plotly/tests --with-coverage --cover-package=plotly
- nosetests -xv plotly/tests/test_core --with-coverage --cover-package=plotly
- mkdir "${CIRCLE_ARTIFACTS}/2.7" || true
- coverage html -d "${CIRCLE_ARTIFACTS}/2.7" --title=2.7
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def readme():
'plotly/matplotlylib/mplexporter',
'plotly/matplotlylib/mplexporter/renderers'],
package_data={'plotly': ['graph_reference/*.json', 'widgets/*.js']},
install_requires=['requests', 'six', 'pytz'],
install_requires=['requests[security]', 'six', 'pytz'],
extras_require={"PY2.6": ['simplejson', 'ordereddict',
'requests[security]']},
zip_safe=False)