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:
parent
6352954807
commit
ecf161e517
|
@ -1,2 +1,4 @@
|
|||
include LICENSE
|
||||
include README.rst
|
||||
include tox.ini
|
||||
recursive-include test *.py
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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):
|
Loading…
Reference in New Issue