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:
Enrico Faulhaber
2018-12-03 18:01:29 +01:00
parent 29a5b5c49e
commit 8efd1df92c
45 changed files with 241 additions and 158 deletions

View File

@@ -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()

View File

@@ -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

View File

@@ -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():

View File

@@ -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():

View File

@@ -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():

View File

@@ -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():

View File

@@ -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():

View File

@@ -1,3 +1,5 @@
from __future__ import division, print_function
def test_assert():
assert 1