vici: Move Python test dir and include it in sdist

This is the recommended location and import config as it allows running the
tests against installed versions of the package.  And while the test file
itself is automatically included in the source distribution this way, the
__init__.py file is not, so we still have to update MANIFEST.in.
This commit is contained in:
Tobias Brunner 2020-01-14 14:58:01 +01:00
parent 6352954807
commit ecf161e517
4 changed files with 6 additions and 4 deletions

View File

@ -1,2 +1,4 @@
include LICENSE
include README.rst
include tox.ini
recursive-include test *.py

View File

@ -2,8 +2,8 @@ EXTRA_DIST = LICENSE README.rst MANIFEST.in \
setup.py.in \
tox.ini \
tox.sh \
vici/test/__init__.py \
vici/test/test_protocol.py \
test/__init__.py \
test/test_protocol.py \
vici/__init__.py \
vici/command_wrappers.py \
vici/compat.py \

View File

@ -1,7 +1,7 @@
import pytest
from ..protocol import Packet, Message, FiniteStream
from ..exception import DeserializationException
from vici.protocol import Packet, Message, FiniteStream
from vici.exception import DeserializationException
class TestPacket(object):