Skip to content

Commit

Permalink
Fix tests to match new twofile behavior
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 4, 2018
1 parent c2044a2 commit abf9325
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/test_metadata_extractors.py
Expand Up @@ -65,10 +65,7 @@ def test_builtin_extractors_rest(metadata_extractors_by, meta_twofile, meta_form
meta, extractor = get_meta(post, None)

assert meta
if twofile:
assert extractor is None
else:
assert extractor is metadata_extractors_by['name'][format_lc]
assert extractor is metadata_extractors_by['name'][format_lc]

assert meta['title'] == title
assert meta['slug'] == slug
Expand Down Expand Up @@ -98,10 +95,7 @@ def test_nikola_meta_markdown(metadata_extractors_by, meta_twofile):
assert os.path.exists(metadata_path)

meta, extractor = get_meta(post, None)
if twofile:
assert extractor is None
else:
assert extractor is metadata_extractors_by['name']['nikola']
assert extractor is metadata_extractors_by['name']['nikola']

assert meta['title'] == title
assert meta['slug'] == slug
Expand Down

0 comments on commit abf9325

Please sign in to comment.