Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
Make doctest more deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
charlax committed Jan 20, 2014
1 parent 1bff4a0 commit fdf4c69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 5 additions & 2 deletions docs/file-format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,11 @@ You can also access the whole collection:

.. doctest::

>>> manager.get_fixture("toasters")
{'blue': <Toaster 'blue'>, 'green': <Toaster 'green'>}
>>> toasters = manager.get_fixture("toasters")
>>> sorted(list(toasters.keys()))
['blue', 'green']
>>> toasters['blue']
<Toaster 'blue'>
>>> manager.get_fixture("anonymous_toasters")
[<Toaster 'yellow'>, <Toaster 'black'>]

Expand Down

0 comments on commit fdf4c69

Please sign in to comment.