mirror of
https://github.com/clearml/wexpect-venv
synced 2025-01-30 18:36:57 +00:00
[CLN] remove relative import from tests
This commit is contained in:
parent
6ef2b00d8b
commit
2c95c2fbfc
@ -30,6 +30,7 @@ test =
|
||||
setuptools>=38.0
|
||||
codecov
|
||||
twine
|
||||
pyinstaller
|
||||
|
||||
[flake8]
|
||||
max-line-length = 100
|
||||
|
@ -20,7 +20,7 @@ PEXPECT LICENSE
|
||||
'''
|
||||
import wexpect
|
||||
import unittest
|
||||
from . import PexpectTestCase
|
||||
from tests import PexpectTestCase
|
||||
|
||||
class TestCaseSplitCommandLine(PexpectTestCase.PexpectTestCase):
|
||||
def test_split_sizes(self):
|
||||
|
@ -33,7 +33,7 @@ import unittest
|
||||
import win32process
|
||||
import win32api
|
||||
import os
|
||||
from . import PexpectTestCase
|
||||
from tests import PexpectTestCase
|
||||
|
||||
|
||||
if "RUN_CONSOLE_READER_TEST" not in os.environ:
|
||||
|
@ -21,7 +21,7 @@ PEXPECT LICENSE
|
||||
import wexpect
|
||||
import unittest
|
||||
import time
|
||||
from . import PexpectTestCase
|
||||
from tests import PexpectTestCase
|
||||
|
||||
class TestCaseConstructor(PexpectTestCase.PexpectTestCase):
|
||||
def test_constructor (self):
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import PexpectTestCase
|
||||
from tests import PexpectTestCase
|
||||
import wexpect
|
||||
|
||||
|
||||
|
@ -20,7 +20,7 @@ PEXPECT LICENSE
|
||||
'''
|
||||
import wexpect
|
||||
import unittest
|
||||
from . import PexpectTestCase
|
||||
from tests import PexpectTestCase
|
||||
import gc
|
||||
import platform
|
||||
import time
|
||||
|
@ -20,7 +20,7 @@ PEXPECT LICENSE
|
||||
'''
|
||||
import wexpect
|
||||
import unittest
|
||||
from . import PexpectTestCase
|
||||
from tests import PexpectTestCase
|
||||
|
||||
class EchoTestCase(PexpectTestCase.PexpectTestCase):
|
||||
def testPath(self):
|
||||
|
@ -27,7 +27,7 @@ import sys
|
||||
import os
|
||||
|
||||
import wexpect
|
||||
from . import PexpectTestCase
|
||||
from tests import PexpectTestCase
|
||||
from .utils import no_coverage_env
|
||||
|
||||
# Many of these test cases blindly assume that sequential directory
|
||||
|
@ -30,7 +30,7 @@ SOFTWARE.
|
||||
import wexpect
|
||||
import time
|
||||
import unittest
|
||||
from . import PexpectTestCase
|
||||
from tests import PexpectTestCase
|
||||
|
||||
class InteractTestCase(PexpectTestCase.PexpectTestCase):
|
||||
|
||||
|
@ -23,7 +23,7 @@ import unittest
|
||||
import signal
|
||||
import sys
|
||||
import time
|
||||
from . import PexpectTestCase
|
||||
from tests import PexpectTestCase
|
||||
|
||||
PYBIN = '"{}"'.format(sys.executable)
|
||||
|
||||
|
@ -22,7 +22,7 @@ import wexpect
|
||||
import unittest
|
||||
import sys
|
||||
import os
|
||||
from . import PexpectTestCase
|
||||
from tests import PexpectTestCase
|
||||
from . import long_printer
|
||||
|
||||
puskas_wiki = long_printer.puskas_wiki
|
||||
|
@ -25,7 +25,7 @@ import os
|
||||
import time
|
||||
|
||||
import wexpect
|
||||
from . import PexpectTestCase
|
||||
from tests import PexpectTestCase
|
||||
|
||||
# the program cat(1) may display ^D\x08\x08 when \x04 (EOF, Ctrl-D) is sent
|
||||
_CAT_EOF = '^D\x08\x08'
|
||||
|
@ -31,7 +31,7 @@ import time
|
||||
import sys
|
||||
import os
|
||||
import unittest
|
||||
from . import PexpectTestCase
|
||||
from tests import PexpectTestCase
|
||||
|
||||
here = os.path.dirname(os.path.abspath(__file__))
|
||||
sys.path.insert(0, here)
|
||||
|
@ -26,7 +26,7 @@ import tempfile
|
||||
import sys
|
||||
import os
|
||||
import re
|
||||
from . import PexpectTestCase
|
||||
from tests import PexpectTestCase
|
||||
|
||||
unicode_type = str
|
||||
|
||||
|
4
tox.ini
4
tox.ini
@ -3,7 +3,7 @@
|
||||
|
||||
[tox]
|
||||
# The following configuration will run automatically.
|
||||
envlist = py{37}-{default,legacy_wexpect,spawn_pipe}
|
||||
envlist = py{37}-{default,legacy_wexpect,spawn_pipe},installed
|
||||
|
||||
[testenv]
|
||||
description = Unit tests
|
||||
@ -34,7 +34,7 @@ commands =
|
||||
# normal tests test the cloned files. This testenv tests the installation itself.
|
||||
description = Unit tests installed
|
||||
|
||||
changedir = test_installed_01
|
||||
changedir = test_01_installed
|
||||
|
||||
# Appveyor will set the WEXPECT_SPAWN_CLASS to run the proper configuration for each run.
|
||||
passenv =
|
||||
|
Loading…
Reference in New Issue
Block a user