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