fix isort
Change-Id: I5486e1f9b3143c6bb0804c49c7ca21adb9b84de1 Reviewed-on: https://forge.frm2.tum.de/review/19524 Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de> Tested-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
# content of conftest.py
|
||||
from __future__ import division, print_function
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@@ -15,5 +17,6 @@ def constants():
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
# pylint: disable=redefined-builtin
|
||||
def globals():
|
||||
return dict()
|
||||
|
||||
@@ -20,18 +20,21 @@
|
||||
#
|
||||
# *****************************************************************************
|
||||
"""test base client."""
|
||||
from __future__ import print_function
|
||||
from __future__ import division, print_function
|
||||
|
||||
import sys
|
||||
from os import path
|
||||
sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))
|
||||
|
||||
from collections import OrderedDict
|
||||
from os import path
|
||||
|
||||
import pytest
|
||||
|
||||
from secop.client.baseclient import Client
|
||||
|
||||
sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))
|
||||
|
||||
|
||||
|
||||
|
||||
# define Test-only connection object
|
||||
|
||||
|
||||
|
||||
@@ -21,17 +21,22 @@
|
||||
# *****************************************************************************
|
||||
"""test data types."""
|
||||
|
||||
from __future__ import division, print_function
|
||||
|
||||
import sys
|
||||
from os import path
|
||||
sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))
|
||||
|
||||
# no fixtures needed
|
||||
import pytest
|
||||
|
||||
from secop.datatypes import (ArrayOf, BLOBType, BoolType, DataType, EnumType,
|
||||
FloatRange, IntRange, ProgrammingError,
|
||||
StringType, StructOf, TupleOf, get_datatype)
|
||||
|
||||
sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))
|
||||
|
||||
|
||||
|
||||
from secop.datatypes import DataType, FloatRange, IntRange, \
|
||||
EnumType, BLOBType, StringType, BoolType, ArrayOf, TupleOf, StructOf, \
|
||||
get_datatype, ProgrammingError
|
||||
|
||||
|
||||
def test_DataType():
|
||||
|
||||
@@ -21,15 +21,20 @@
|
||||
# *****************************************************************************
|
||||
"""test Enum type."""
|
||||
|
||||
from __future__ import division, print_function
|
||||
|
||||
import sys
|
||||
from os import path
|
||||
sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))
|
||||
|
||||
# no fixtures needed
|
||||
import pytest
|
||||
|
||||
from secop.lib.enum import Enum, EnumMember
|
||||
|
||||
sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))
|
||||
|
||||
|
||||
|
||||
from secop.lib.enum import EnumMember, Enum
|
||||
|
||||
|
||||
def test_EnumMember():
|
||||
|
||||
@@ -20,25 +20,28 @@
|
||||
#
|
||||
# *****************************************************************************
|
||||
"""test data types."""
|
||||
from __future__ import print_function
|
||||
from __future__ import division, print_function
|
||||
|
||||
import sys
|
||||
from os import path
|
||||
sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))
|
||||
|
||||
# no fixtures needed
|
||||
import pytest
|
||||
|
||||
from secop.datatypes import BoolType, EnumType
|
||||
from secop.metaclass import ModuleMeta
|
||||
from secop.modules import Communicator, Drivable, Module, Readable, Writable
|
||||
from secop.params import Command, Override, Parameter
|
||||
|
||||
sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))
|
||||
|
||||
|
||||
try:
|
||||
import Queue as queue
|
||||
except ImportError:
|
||||
import queue as queue
|
||||
|
||||
from secop.datatypes import BoolType, EnumType
|
||||
|
||||
from secop.metaclass import ModuleMeta
|
||||
from secop.params import Command, Parameter, Override
|
||||
from secop.modules import Module, Readable, Writable, Drivable, Communicator
|
||||
|
||||
|
||||
def test_Communicator():
|
||||
|
||||
@@ -21,17 +21,22 @@
|
||||
# *****************************************************************************
|
||||
"""test data types."""
|
||||
|
||||
from __future__ import division, print_function
|
||||
|
||||
import sys
|
||||
from os import path
|
||||
sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))
|
||||
|
||||
# no fixtures needed
|
||||
import pytest
|
||||
|
||||
|
||||
from secop.datatypes import BoolType
|
||||
from secop.params import Command, Override, Parameter
|
||||
|
||||
sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))
|
||||
|
||||
|
||||
|
||||
|
||||
from secop.params import Command, Parameter, Override
|
||||
|
||||
|
||||
def test_Command():
|
||||
|
||||
@@ -21,16 +21,21 @@
|
||||
# *****************************************************************************
|
||||
"""test data types."""
|
||||
|
||||
import sys
|
||||
from os import path
|
||||
sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))
|
||||
from __future__ import division, print_function
|
||||
|
||||
import sys
|
||||
from collections import OrderedDict
|
||||
from os import path
|
||||
|
||||
import pytest
|
||||
|
||||
from secop.parse import Parser
|
||||
|
||||
sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), '..')))
|
||||
|
||||
|
||||
|
||||
|
||||
# pylint: disable=redefined-outer-name
|
||||
@pytest.fixture(scope="module")
|
||||
def parser():
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
from __future__ import division, print_function
|
||||
|
||||
|
||||
def test_assert():
|
||||
assert 1
|
||||
|
||||
Reference in New Issue
Block a user