diff options
author | shimizukawa <shimizukawa@gmail.com> | 2017-01-07 02:13:50 +0900 |
---|---|---|
committer | shimizukawa <shimizukawa@gmail.com> | 2017-01-07 02:14:29 +0900 |
commit | 4c22cd10caa7b9621ece480fade5653d65226fcc (patch) | |
tree | 19a64268e9814dfa12087dc2d432c5339a23a0a9 /tests/test_metadata.py | |
parent | f695aac2e28e1463385b399b61fc2c4b4ef40c5c (diff) | |
parent | 620616cdbd92147f6ea7bbeb670dc3a0562235ff (diff) | |
download | sphinx-git-4c22cd10caa7b9621ece480fade5653d65226fcc.tar.gz |
Merge branch 'stable'
Diffstat (limited to 'tests/test_metadata.py')
-rw-r--r-- | tests/test_metadata.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/test_metadata.py b/tests/test_metadata.py index 14ab51ccd..868b05139 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -12,12 +12,10 @@ # adapted from an example of bibliographic metadata at # http://docutils.sourceforge.net/docs/user/rst/demo.txt -from util import with_app +import pytest -from nose.tools import assert_equal - -@with_app('pseudoxml') +@pytest.mark.sphinx('pseudoxml') def test_docinfo(app, status, warning): """ Inspect the 'docinfo' metadata stored in the first node of the document. @@ -53,8 +51,4 @@ def test_docinfo(app, status, warning): 'orphan': u'', 'nocomments': u'', } - # I like this way of comparing dicts - easier to see the error. - for key in exampledocinfo: - yield assert_equal, exampledocinfo.get(key), expecteddocinfo.get(key) - # but then we still have to check for missing keys - yield assert_equal, set(expecteddocinfo.keys()), set(exampledocinfo.keys()) + assert exampledocinfo == expecteddocinfo |