Skip to content
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

point boto-config to /dev/null #320

Merged
merged 4 commits into from
Jul 12, 2017
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
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: python

python:
- 2.7
- pypy
- pypy-5.4.1

env:
global:
Expand All @@ -13,10 +13,11 @@ env:

matrix:
exclude:
- python: pypy
- python: pypy-5.4.1
env: DATAFS_TEST_ENV=xarray

install:
- export BOTO_CONFIG=/dev/null
- pip install --upgrade pip
- if [[ "$DATAFS_TEST_ENV" == "xarray" ]]; then
if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
Expand Down Expand Up @@ -75,6 +76,7 @@ services:
before_install:
- docker pull tray/dynamodb-local
- docker run -d -p 8000:8000 tray/dynamodb-local -inMemory -port 8000
- export BOTO_CONFIG=/dev/null

notifications:
email:
Expand Down
15 changes: 13 additions & 2 deletions examples/snippets/pythonapi_finding_archives.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,22 @@

.. code-block:: python

>>> api.listdir('impactlab')
[u'labor', u'climate', u'conflict', u'mortality']
>>> api.listdir('impactlab') # doctest: +SKIP
['labor', 'climate', 'conflict', 'mortality']

.. EXAMPLE-BLOCK-3-END

And the actual test:

.. code-block:: python

>>> (set(api.listdir('impactlab')) == set([
... 'labor', 'climate', 'conflict', 'mortality']))
...
True



Example 4
---------

Expand Down
4 changes: 3 additions & 1 deletion tests/cli_snippets/test_cli_finding_archives.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ def test_cli_listdir(cli_validator_listdir):

Snippet 1

This test can't currently be tested with clatter, due to unpredictable ordering

.. EXAMPLE-BLOCK-1-START

.. code-block:: bash

$ datafs listdir impactlab
$ datafs listdir impactlab # doctest: +SKIP
labor
climate
conflict
Expand Down