zulip package: Add unittest
As the first unittest, this creates a test directory and abnd adds it tho the excluded pip package files. There are two `tests` directories now, one in zulip_botserver and one in zulip. This confuses the unittest runner, leading to failed test imports. Therefore, we need to tell the package importer that there are multiple tests directories, all of which should be considered for a search.
This commit is contained in:
parent
390054da62
commit
fb2aff4611
4 changed files with 50 additions and 1 deletions
|
@ -74,7 +74,7 @@ setuptools_info = dict(
|
|||
try:
|
||||
from setuptools import setup, find_packages
|
||||
package_info.update(setuptools_info)
|
||||
package_info['packages'] = find_packages()
|
||||
package_info['packages'] = find_packages(exclude=['tests'])
|
||||
|
||||
except ImportError:
|
||||
from distutils.core import setup
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue