Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Commit

Permalink
Ship manuals and tests with package (#77)
Browse files Browse the repository at this point in the history
Once the package is installed, all tests can be run with
`python -m unittest termtosvg.tests.suite`
  • Loading branch information
polyzen authored and nbedos committed Nov 11, 2018
1 parent 141e403 commit c68e344
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 12 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include LICENSE
include man/*.1
include scripts/*
recursive-include termtosvg/data *
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ tests: venv_dev
$(VENV_ACTIVATE) && \
pip freeze && \
coverage run --branch --source termtosvg -m unittest -v && \
coverage report && \
coverage report --omit 'termtosvg/tests/*' && \
coverage html
-$(VENV_ACTIVATE) && \
pylint -j 0 --extension-pkg-whitelist lxml termtosvg/*.py
Expand Down
10 changes: 3 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,9 @@
'Topic :: Terminals'
],
python_requires='>=3.5',
packages=['termtosvg'],
py_modules=[
'termtosvg.anim',
'termtosvg.asciicast',
'termtosvg.config',
'termtosvg.main',
'termtosvg.term',
packages=[
'termtosvg',
'termtosvg.tests'
],
scripts=['scripts/termtosvg'],
include_package_data=True,
Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions termtosvg/tests/suite.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import unittest

from termtosvg.tests.test_anim import TestAnim
from termtosvg.tests.test_asciicast import TestAsciicast
from termtosvg.tests.test_config import TestConf
from termtosvg.tests.test_main import TestMain
from termtosvg.tests.test_term import TestTerm
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/test_main.py → termtosvg/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

SHELL_COMMANDS = [
'echo $SHELL && sleep 0.1;\r\n',
'tree && 0.1;\r\n',
'ls && sleep 0.1;\r\n',
'date && sleep 0.1;\r\n',
'uname && sleep 0.1;\r\n',
'w',
'h',
'o',
Expand Down
4 changes: 2 additions & 2 deletions tests/test_term.py → termtosvg/tests/test_term.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

commands = [
'echo $SHELL && sleep 0.1;\r\n',
'tree && 0.1;\r\n',
'ls && sleep 0.1;\r\n',
'date && sleep 0.1;\r\n',
'uname && sleep 0.1;\r\n',
'w',
'h',
'o',
Expand Down

0 comments on commit c68e344

Please sign in to comment.