Skip to content

Commit 81f1eb6

Browse files
committed
💚 make unit test pass
1 parent e1cf0b0 commit 81f1eb6

File tree

6 files changed

+24
-9
lines changed

6 files changed

+24
-9
lines changed

.isort.cfg

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[settings]
2+
line_length=79
3+
# Ignore generated files
4+
skip=setup.py, moban/__init__.py
5+
known_third_party=moban, fs, lml, crayons, jinja2, ruamel.yaml, mock, nose
6+
indent=' '
7+
multi_line_output=3
8+
length_sort=1
9+
include_trailing_comma=true
10+
default_section=FIRSTPARTY
11+
no_lines_before=LOCALFOLDER
12+
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@
5959
# Add any paths that contain custom static files (such as style sheets) here,
6060
# relative to this directory. They are copied after the builtin static files,
6161
# so a file named "default.css" will overwrite the builtin "default.css".
62-
html_static_path = ['static']
62+
html_static_path = ['static']

moban_handlebars/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# flake8: noqa
22
import moban.constants as constants
33
from lml.plugin import PluginInfo, PluginInfoChain
4+
45
from moban_handlebars._version import __author__, __version__
56

67
PluginInfoChain(__name__).add_a_plugin_instance(

moban_handlebars/engine.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import sys
22

3-
from moban.externals import file_system
4-
53
from pybars import Compiler
4+
from moban.externals import file_system
65

76
PY2 = sys.version_info[0] == 2
87

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/usr/bin/env python3
22

3+
import os
4+
import sys
35
# Template by pypi-mobans
46
import codecs
57
import locale
6-
import os
78
import platform
8-
import sys
99
from shutil import rmtree
1010

11-
from setuptools import Command, find_packages, setup
11+
from setuptools import Command, setup, find_packages
1212

1313
PY2 = sys.version_info[0] == 2
1414
PY26 = PY2 and sys.version_info[1] < 7

tests/test_handlebar_engine.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import os
22

3-
from moban.core import ENGINES
4-
from moban_handlebars.engine import EngineHandlebars
5-
from moban import file_system
3+
from moban.core import ENGINES, plugins
64
from nose.tools import eq_
5+
from moban.externals import file_system
6+
7+
from moban_handlebars.engine import EngineHandlebars
8+
9+
plugins.make_sure_all_pkg_are_loaded()
710

811

912
def test_handlebars_template_not_found():

0 commit comments

Comments
 (0)