Skip to content
Permalink
Browse files
Turns out we run flake8 on tests, too
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 5, 2017
1 parent a9fadb2 commit 72e5c54af771f562de7924d57fbf52d93f7249a8
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/test_metadata_extractors.py
@@ -5,7 +5,6 @@
import os
import pytest
from .base import FakeSite
from nikola.utils import LocaleBorg
from nikola.metadata_extractors import default_metadata_extractors_by, load_defaults
from nikola.post import get_meta
from nikola.plugins.compile.rest import CompileRest
@@ -135,8 +134,9 @@ def test_compiler_metadata(metadata_extractors_by, compiler_data):

class FakeBorg():
current_lang = 'en'
def __call__(self): return self

def __call__(self):
return self

with mock.patch('nikola.plugins.compile.' + compiler_lc + '.LocaleBorg', FakeBorg):
meta, extractor = get_meta(post, None)

0 comments on commit 72e5c54

Please sign in to comment.