Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 72e5c54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_metadata_extractors.py
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 72e5c54

Please sign in to comment.