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

RE #27722 autopep8 E302 Expected blank lines

parent 4e16602f
......@@ -8,6 +8,7 @@ import unittest
from mantid.kernel import UnitConversion, DeltaEModeType
import math
class UnitConversionTest(unittest.TestCase):
def test_run_accepts_string_units(self):
......
......@@ -7,6 +7,7 @@
import unittest
from mantid.kernel import UnitFactory, UnitFactoryImpl, Unit
class UnitFactoryTest(unittest.TestCase):
def test_alias_is_of_type_UnitFactoryImpl(self):
......
......@@ -8,6 +8,7 @@ import unittest
from mantid.kernel import UnitFactory, UnitLabel
import sys
class UnitLabelTest(unittest.TestCase):
def test_UnitLabel_can_be_built_from_simple_string(self):
......
......@@ -8,6 +8,7 @@ import unittest
from mantid.kernel import UnitFactory, Unit, Label, UnitLabel
import types
class UnitsTest(unittest.TestCase):
def test_Label_is_returned_from_Factory(self):
......
......@@ -8,6 +8,7 @@ from mantid.kernel import VMD
import math
import unittest
class VMDTest(unittest.TestCase):
def test_default_construction_gives_object_with_single_dimension(self):
......
......@@ -18,6 +18,7 @@ from mantid.plots.scales import PowerScale, SquareScale
import numpy as np
import testhelpers
class ScalesTest(unittest.TestCase):
def test_power_scale_registered_in_factory(self):
......
......@@ -21,6 +21,7 @@ from mantid.py3compat.mock import patch
from mantid.plots._compatability import plotSpectrum, plotBin
from mantid.plots.utility import MantidAxType
class compatabilityTest(unittest.TestCase):
@patch('mantid.plots._compatability.plot')
......
......@@ -12,6 +12,7 @@ from AbinsModules import AbinsConstants, AbinsTestHelpers
import numpy as np
from numpy.testing import assert_array_almost_equal
class AbinsBasicTest(unittest.TestCase):
_si2 = "Si2-sc_Abins"
......
......@@ -8,6 +8,7 @@ import unittest
from mantid.simpleapi import AlignComponents, CreateSampleWorkspace, MoveInstrumentComponent, CreateEmptyTableWorkspace, mtd, RotateInstrumentComponent
from mantid.api import AlgorithmFactory
class AlignComponentsTest(unittest.TestCase):
def testAlignComponentsPositionXY(self):
......
......@@ -8,6 +8,7 @@ import unittest
import mantid
from mantid.simpleapi import AngularAutoCorrelationsSingleAxis
class AngularAutoCorrelationsSingleAxisTest(unittest.TestCase):
def test_simple(self):
......
......@@ -8,6 +8,7 @@ import unittest
import mantid
from mantid.simpleapi import AngularAutoCorrelationsTwoAxes
class AngularAutoCorrelationsTwoAxesTest(unittest.TestCase):
def test_simple(self):
......
......@@ -9,6 +9,7 @@ from mantid.simpleapi import CalculateFlux, CreateSampleWorkspace, FindDetectors
import numpy as np
import testhelpers
class CalculateFluxTest(unittest.TestCase):
pixels_in_shape = 0
......
......@@ -14,6 +14,7 @@ from mantid.simpleapi import CreateCacheFilename
import os, sys, hashlib, tempfile, glob, shutil, time
class CleanFileCache(unittest.TestCase):
def test1(self):
......@@ -163,6 +164,7 @@ def computeTime(daysbefore):
"compute time as float of the time at n=daysbefore days before today"
return time.time() - daysbefore * 24*60*60
def touch(f):
with open(f, 'w') as stream:
stream.write('\n')
......
......@@ -12,6 +12,7 @@ from numpy import testing
from scipy import constants
import testhelpers
class ComputeIncoherentDOSTest(unittest.TestCase):
def createPhononWS(self, T, en, e_units):
......
......@@ -10,6 +10,7 @@ from mantid.kernel import *
from mantid.api import *
from testhelpers import run_algorithm
class ConjoinSpectraTest(unittest.TestCase):
_aWS= None
......
......@@ -10,6 +10,7 @@ from mantid.api import *
from testhelpers import *
from numpy import *
class CorrectLogTimesTest(unittest.TestCase):
def testCLTWrongLog(self):
......
......@@ -11,6 +11,7 @@ from mantid.api import AnalysisDataService, WorkspaceGroup
from scipy.constants import h, m_n, eV
import numpy as np
class CorrectTOFTest(unittest.TestCase):
def setUp(self):
......
......@@ -12,6 +12,7 @@ from testhelpers import run_algorithm
import os, mantid, hashlib
class CreateCacheFilename(unittest.TestCase):
def test1(self):
......
......@@ -12,6 +12,7 @@ from testhelpers import run_algorithm
from mantid.api import AnalysisDataService
import os
class CreateLeBailFitInputTest(unittest.TestCase):
def test_LoadHKLFile(self):
......
......@@ -10,6 +10,7 @@ from mantid.simpleapi import CreateWorkspace
from testhelpers import run_algorithm
import numpy as np
class CreateWorkspaceTest(unittest.TestCase):
def test_create_with_1D_numpy_array(self):
......
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