Loading setup.cfg +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ formats = gztar bztar zip with-doctest = True [tool:pytest] testpaths = pybtex testpaths = pybtex tests addopts = --doctest-modules [isort] Loading pybtex/tests/__init__.py→tests/__init__.py +5 −0 Original line number Diff line number Diff line Loading @@ -21,8 +21,13 @@ from __future__ import unicode_literals # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. import pkgutil from difflib import unified_diff def diff(src, dst): return '\n'.join(unified_diff(src.splitlines(), dst.splitlines())) def read_file(filename, package='tests.data'): return pkgutil.get_data(package, filename).decode('UTF-8') pybtex/tests/bibtex_parser_test.py→tests/bibtex_parser_test.py +0 −0 File moved. View file pybtex/tests/bst_parser_test/__init__.py→tests/bst_parser_test/__init__.py +0 −0 File moved. pybtex/tests/bst_parser_test/apacite.py→tests/bst_parser_test/apacite.py +0 −0 File moved. View file Loading
setup.cfg +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ formats = gztar bztar zip with-doctest = True [tool:pytest] testpaths = pybtex testpaths = pybtex tests addopts = --doctest-modules [isort] Loading
pybtex/tests/__init__.py→tests/__init__.py +5 −0 Original line number Diff line number Diff line Loading @@ -21,8 +21,13 @@ from __future__ import unicode_literals # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. import pkgutil from difflib import unified_diff def diff(src, dst): return '\n'.join(unified_diff(src.splitlines(), dst.splitlines())) def read_file(filename, package='tests.data'): return pkgutil.get_data(package, filename).decode('UTF-8')