mirror of
https://github.com/basicswap/basicswap.git
synced 2024-12-22 19:49:20 +00:00
Move tests to a sub dir.
Else they install to site-packages/tests/
This commit is contained in:
parent
900358e7c3
commit
2882992c4f
10 changed files with 18 additions and 22 deletions
|
@ -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:
|
||||||
|
|
|
@ -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
0
doc/install.md
Normal file
2
setup.py
2
setup.py
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
@ -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
Normal file
14
tests/basicswap/__init__.py
Normal 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
|
Loading…
Reference in a new issue