Browse Source

Move tests to a sub dir.

Else they install to site-packages/tests/
pull/1/head
tecnovert 5 years ago
parent
commit
2882992c4f
No known key found for this signature in database GPG Key ID: 8ED6D8750C4E3F93
  1. 4
      .travis.yml
  2. 6
      MANIFEST.in
  3. 0
      doc/install.md
  4. 2
      setup.py
  5. 14
      tests/__init__.py
  6. 14
      tests/basicswap/__init__.py
  7. 0
      tests/basicswap/test_nmc.py
  8. 0
      tests/basicswap/test_other.py
  9. 0
      tests/basicswap/test_prepare.py
  10. 0
      tests/basicswap/test_run.py

4
.travis.yml

@ -1,7 +1,7 @@
dist: xenial
dist: buster
os: linux
language: python
python: '3.6'
python: '3.7'
stages:
- lint
env:

6
MANIFEST.in

@ -1,8 +1,4 @@
# Include the README
include *.md
# Include the license file
include LICENSE.txt
include *.md LICENSE.txt
recursive-include doc *
recursive-include basicswap/templates *

0
doc/install.md

2
setup.py

@ -36,5 +36,5 @@ setuptools.setup(
"basicswap-prepare=bin.basicswap_prepare:main",
]
},
test_suite="tests.test_suite"
test_suite="tests.basicswap.test_suite"
)

14
tests/__init__.py

@ -1,14 +0,0 @@
import unittest
import tests.test_other
import tests.test_prepare
import tests.test_run
def test_suite():
loader = unittest.TestLoader()
suite = loader.loadTestsFromModule(tests.test_other)
suite.addTests(loader.loadTestsFromModule(tests.test_prepare))
suite.addTests(loader.loadTestsFromModule(tests.test_run))
return suite

14
tests/basicswap/__init__.py

@ -0,0 +1,14 @@
import unittest
import tests.basicswap.test_other as test_other
import tests.basicswap.test_prepare as test_prepare
import tests.basicswap.test_run as test_run
def test_suite():
loader = unittest.TestLoader()
suite = loader.loadTestsFromModule(test_other)
suite.addTests(loader.loadTestsFromModule(test_prepare))
suite.addTests(loader.loadTestsFromModule(test_run))
return suite

0
tests/test_nmc.py → tests/basicswap/test_nmc.py

0
tests/test_other.py → tests/basicswap/test_other.py

0
tests/test_prepare.py → tests/basicswap/test_prepare.py

0
tests/test_run.py → tests/basicswap/test_run.py

Loading…
Cancel
Save