Move tests to a sub dir.

Else they install to site-packages/tests/
This commit is contained in:
tecnovert 2019-07-26 12:57:05 +02:00
parent 900358e7c3
commit 2882992c4f
No known key found for this signature in database
GPG key ID: 8ED6D8750C4E3F93
10 changed files with 18 additions and 22 deletions

View file

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

View file

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

0
doc/install.md Normal file
View file

View file

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

View file

@ -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

View file

@ -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