-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* replace nose by pytest * fix assert call * fix assert call * try make black happy * Is not alphabetical sorting better? * try make black happy * try make black happy * update project meta * test_engine.py: fix imports * fix lint * test_text.py: fix imports * test_repr.py: fix imports * test_extensions.py: fix imports * test_engine.py: fix imports * fix ling * add __init__.py along test_engine.py * test_moban_factory.py: fix imports * fix lint * fix imports * fix path * fix path * raises, does not raise and expand_template_directories changed behavior * fix path * fix lint * call load_engine_factory_and_engines * call load_engine_factory_and_engines * attempt to resolve compatibility issue * fix lint * moban-ansible missing, maybe? * os.path.join -> fs.path.join * add missing imports Co-authored-by: user <user@germ25.suse.cz>
- Loading branch information
Showing
40 changed files
with
402 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
pip freeze | ||
|
||
nosetests --verbosity=3 --with-cov --with-doctest --doctest-extension=.rst --cover-package moban --cover-package tests | ||
pytest --verbosity=3 --cov=moban --doctest-glob=*.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from moban.main import load_engine_factory_and_engines | ||
|
||
|
||
def setup(): | ||
def setUpModule(): | ||
load_engine_factory_and_engines() |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import pytest | ||
import fs.path | ||
from nose.tools import eq_ | ||
|
||
from moban.plugins.json_loader import open_json | ||
|
||
|
||
def test_open_json(): | ||
content = open_json(fs.path.join("tests", "fixtures", "child.json")) | ||
expected = {"key": "hello world", "pass": "ox"} | ||
eq_(expected, content) | ||
assert expected == content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.