Skip to content
Snippets Groups Projects
Commit b6d397b6 authored by Corné Lukken's avatar Corné Lukken
Browse files

L2SS-940: Minor linting improvements

parent 7e25e5e0
No related branches found
No related tags found
1 merge request!431L2SS-940: Consolidate duplicate code from 877 and 876
...@@ -16,7 +16,6 @@ from tango import DeviceProxy, DevSource, AttrWriteType, DevVarFloatArray, DevVa ...@@ -16,7 +16,6 @@ from tango import DeviceProxy, DevSource, AttrWriteType, DevVarFloatArray, DevVa
from tango.server import device_property, attribute, command from tango.server import device_property, attribute, command
# Additional import # Additional import
from tangostationcontrol.common.type_checking import sequence_not_str
from tangostationcontrol.common.type_checking import type_not_sequence from tangostationcontrol.common.type_checking import type_not_sequence
from tangostationcontrol.common.entrypoint import entry from tangostationcontrol.common.entrypoint import entry
from tangostationcontrol.devices.lofar_device import lofar_device from tangostationcontrol.devices.lofar_device import lofar_device
......
...@@ -35,8 +35,8 @@ class TestTypeChecking(base.TestCase): ...@@ -35,8 +35,8 @@ class TestTypeChecking(base.TestCase):
"""Test object is sequence based on properties and verify is_sequence""" """Test object is sequence based on properties and verify is_sequence"""
result = ( result = (
self.subscriptable(obj) & self.iterable(obj) & self.subscriptable(obj) & self.iterable(obj)
self.positional_ordering(obj) & self.positional_ordering(obj)
) )
self.assertEqual( self.assertEqual(
...@@ -73,5 +73,5 @@ class TestTypeChecking(base.TestCase): ...@@ -73,5 +73,5 @@ class TestTypeChecking(base.TestCase):
def test_type_not_sequence(self): def test_type_not_sequence(self):
test = [str] test = [str]
self.asserFalse(type_checking.type_not_sequence(test)) self.assertFalse(type_checking.type_not_sequence(test))
self.asserTrue(type_checking.type_not_sequence(test[0])) self.assertTrue(type_checking.type_not_sequence(test[0]))
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
# Distributed under the terms of the APACHE license. # Distributed under the terms of the APACHE license.
# See LICENSE.txt for more info. # See LICENSE.txt for more info.
import time
import statistics
import logging import logging
import unittest import unittest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment