add first unit test, 'setup.py test' support
This commit is contained in:
parent
d782a8b63b
commit
c14749fae0
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -22,6 +22,7 @@ var/
|
||||||
.installed.cfg
|
.installed.cfg
|
||||||
*.egg
|
*.egg
|
||||||
MANIFEST
|
MANIFEST
|
||||||
|
.eggs
|
||||||
|
|
||||||
# PyInstaller
|
# PyInstaller
|
||||||
# Usually these files are written by a python script from a template
|
# Usually these files are written by a python script from a template
|
||||||
|
|
1
setup.py
1
setup.py
|
@ -20,5 +20,6 @@ setup(name="wormhole-sync",
|
||||||
package_dir={"": "src"},
|
package_dir={"": "src"},
|
||||||
packages=["wormhole"],
|
packages=["wormhole"],
|
||||||
install_requires=["spake2"],
|
install_requires=["spake2"],
|
||||||
|
test_suite="wormhole.test",
|
||||||
cmdclass=commands,
|
cmdclass=commands,
|
||||||
)
|
)
|
||||||
|
|
0
src/wormhole/test/__init__.py
Normal file
0
src/wormhole/test/__init__.py
Normal file
6
src/wormhole/test/test_load.py
Normal file
6
src/wormhole/test/test_load.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
class Import(unittest.TestCase):
|
||||||
|
def test_import(self):
|
||||||
|
import wormhole
|
||||||
|
self.assertTrue(len(wormhole.__version__))
|
Loading…
Reference in New Issue
Block a user