diff --git a/.travis.yml b/.travis.yml index 86f6dc2..2d33bd4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,6 @@ install: - "pip install -r requirements-test.txt --use-mirrors" - "python setup.py develop" -script: coverage run --source charlatan setup.py test +script: flake8 charlatan && coverage run --source charlatan setup.py test after_success: coveralls diff --git a/docs/file-format.rst b/docs/file-format.rst index 8d01464..c8fd8f5 100644 --- a/docs/file-format.rst +++ b/docs/file-format.rst @@ -197,8 +197,11 @@ You can also access the whole collection: .. doctest:: - >>> manager.get_fixture("toasters") - {'blue': , 'green': } + >>> toasters = manager.get_fixture("toasters") + >>> sorted(list(toasters.keys())) + ['blue', 'green'] + >>> toasters['blue'] + >>> manager.get_fixture("anonymous_toasters") [, ]