Skip to content
Permalink
Browse files

Fix tests to match new twofile behavior

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 4, 2018
1 parent c2044a2 commit abf93259cf61442aa5bc027bc8566707a03216e5
Showing with 2 additions and 8 deletions.
  1. +2 −8 tests/test_metadata_extractors.py
@@ -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
@@ -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

0 comments on commit abf9325

Please sign in to comment.