Commit 2c239f9e authored by Conor Finn's avatar Conor Finn
Browse files

RE #27722 autopep8 E302 Expected blank lines

parent 4e16602f
......@@ -10,6 +10,7 @@ from mantid.api import (Algorithm, DataProcessorAlgorithm, AlgorithmFactory,
AlgorithmManager, WorkspaceProperty)
from mantid.kernel import Direction
class TestDataProcessor(DataProcessorAlgorithm):
def PyInit(self):
pass
......@@ -17,6 +18,7 @@ class TestDataProcessor(DataProcessorAlgorithm):
pass
# end v1 alg
class DataProcessorAlgorithmTest(unittest.TestCase):
def test_DataProcessorAlgorithm_instance_inherits_Algorithm(self):
......
......@@ -14,6 +14,7 @@ from mantid.geometry import Instrument
from mantid.api import Sample, Run
from math import pi
class ExperimentInfoTest(unittest.TestCase):
_expt_ws = None
......
......@@ -8,6 +8,7 @@ import unittest
import testhelpers
from mantid.api import FrameworkManager, FrameworkManagerImpl, IAlgorithm, AlgorithmProxy
class FrameworkManagerTest(unittest.TestCase):
def test_clear_functions_do_not_throw(self):
......
......@@ -11,6 +11,7 @@ from testhelpers import run_algorithm, can_be_instantiated, WorkspaceCreationHel
from mantid.api import (IEventWorkspace, IEventList, IWorkspaceProperty,
AlgorithmManager)
class IEventWorkspaceTest(unittest.TestCase):
_test_ws = None
......
......@@ -8,6 +8,7 @@ import unittest
from mantid.api import AnalysisDataService, IMaskWorkspace
from testhelpers import run_algorithm, WorkspaceCreationHelper
class IMaskWorkspaceTest(unittest.TestCase):
def test_MaskWorkspace_Is_Retrievable(self):
......
......@@ -8,6 +8,7 @@ import unittest
from mantid.api import *
import numpy as np
class MyPeak(IPeakFunction):
def init(self):
......@@ -18,6 +19,7 @@ class MyPeak(IPeakFunction):
def functionLocal(self, xvals):
return 5*xvals
class RectangularFunction(IPeakFunction):
def init(self):
self.declareParameter("Height")
......@@ -53,6 +55,7 @@ class RectangularFunction(IPeakFunction):
return values
class IPeakFunctionTest(unittest.TestCase):
def test_instance_can_be_created_standalone(self):
......
......@@ -11,6 +11,7 @@ from mantid.api import AnalysisDataService, ITableWorkspace, WorkspaceFactory
from mantid.dataobjects import TableWorkspace
import numpy
class ITableWorkspaceTest(unittest.TestCase):
_test_ws = None
......
......@@ -7,6 +7,7 @@
import unittest
from mantid.api import Jacobian
class JacobianTest(unittest.TestCase):
def test_class_has_expected_attrs(self):
......
......@@ -9,6 +9,7 @@ from testhelpers import run_algorithm
from mantid import mtd
import mantid
class MDEventWorkspaceTest(unittest.TestCase):
"""
Test the interface to MDEventWorkspaces
......
......@@ -13,6 +13,7 @@ import unittest
from testhelpers import WorkspaceCreationHelper
class MDGeometryTest(unittest.TestCase):
_test_ndims = 4
......
......@@ -14,6 +14,8 @@ from mantid.geometry import Detector
from mantid.kernel import Direction, V3D
from mantid.simpleapi import CreateSampleWorkspace, Rebin
import numpy as np
class MatrixWorkspaceTest(unittest.TestCase):
_test_ws_prop = None
......
......@@ -8,6 +8,7 @@ import unittest
from testhelpers import WorkspaceCreationHelper
from mantid.api import ExperimentInfo
class MultipleExperimentInfoTest(unittest.TestCase):
def test_information_access(self):
......
......@@ -8,6 +8,7 @@ import unittest
from mantid.api import MultipleFileProperty, mtd
from testhelpers import create_algorithm
class MultipleFilePropertyTest(unittest.TestCase):
def tearDown(self):
......
......@@ -8,6 +8,7 @@ import unittest
from mantid.api import Progress,PythonAlgorithm
from mantid.kernel import ProgressBase
class ProgressTest(unittest.TestCase):
def test_class_inherits_ProgressBase(self):
......
......@@ -10,6 +10,7 @@ from mantid.kernel import V3D
from mantid.simpleapi import mtd
import numpy as np
class ProjectionTest(unittest.TestCase):
def test_constructors(self):
......
......@@ -15,6 +15,7 @@ from mantid.api import (PythonAlgorithm, AlgorithmProxy, Algorithm, IAlgorithm,
########################### Test classes #####################################
class TestPyAlgDefaultAttrs(PythonAlgorithm):
def PyInit(self):
pass
......@@ -22,6 +23,7 @@ class TestPyAlgDefaultAttrs(PythonAlgorithm):
def PyExec(self):
pass
class TestPyAlgOverriddenAttrs(PythonAlgorithm):
def version(self):
......@@ -42,6 +44,7 @@ class TestPyAlgOverriddenAttrs(PythonAlgorithm):
def PyExec(self):
pass
class TestPyAlgIsRunningReturnsNonBool(PythonAlgorithm):
def isRunning(self):
......@@ -53,6 +56,7 @@ class TestPyAlgIsRunningReturnsNonBool(PythonAlgorithm):
def PyExec(self):
pass
class CancellableAlg(PythonAlgorithm):
is_running = True
......@@ -71,6 +75,7 @@ class CancellableAlg(PythonAlgorithm):
###############################################################################
class PythonAlgorithmTest(unittest.TestCase):
_registered = None
......
......@@ -11,6 +11,7 @@ import unittest
from mantid.api import PythonAlgorithm, WorkspaceProperty
from mantid.kernel import Direction
class PythonAlgorithmWorkspacePropertyTest(unittest.TestCase):
def _do_test(self, classtype):
......
......@@ -13,6 +13,7 @@ from mantid.simpleapi import *
from testhelpers import WorkspaceCreationHelper
class RunPythonScriptTest(unittest.TestCase):
"""
Try out RunPythonScript
......
......@@ -11,6 +11,7 @@ from mantid.kernel import DateAndTime, FloatTimeSeriesProperty
from mantid.api import Run
import numpy as np
class RunTest(unittest.TestCase):
_expt_ws = None
......
......@@ -9,6 +9,7 @@ from testhelpers import WorkspaceCreationHelper
from mantid.kernel import V3D
from mantid.api import SpectrumDefinition
class SpectrumInfoTest(unittest.TestCase):
_ws = None
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment