Skip to content

Commit 10b91b5

Browse files
authored
Merge pull request #107 from sbillinge/rename-testfiles
Rename testfiles
2 parents b93adc8 + 72b4958 commit 10b91b5

25 files changed

+27
-27
lines changed

src/diffpy/srfit/equation/literals/operators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Operator(Literal, OperatorABC):
4141
"""Abstract class for specifying a general operator.
4242
4343
This class provides several methods that are common to a derived
44-
classes for concrete concrete operations.
44+
classes for concrete operations.
4545
4646
Class Attributes
4747
----------------

tests/testbuilder.py renamed to tests/test_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
import diffpy.srfit.equation.builder as builder
2323
import diffpy.srfit.equation.literals as literals
24-
from diffpy.srfit.tests.utils import _makeArgs
25-
from diffpy.srfit.tests.utils import noObserversInGlobalBuilders
24+
from .utils import _makeArgs
25+
from .utils import noObserversInGlobalBuilders
2626

2727

2828
class TestBuilder(unittest.TestCase):

tests/testcharacteristicfunctions.py renamed to tests/test_characteristicfunctions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import numpy
2121

22-
from diffpy.srfit.tests.utils import has_sas, _msg_nosas
22+
from .utils import has_sas, _msg_nosas
2323
from diffpy.srfit.sas.sasimport import sasimport
2424

2525
# Global variables to be assigned in setUp
File renamed without changes.

tests/testcontribution.py renamed to tests/test_contribution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from diffpy.srfit.fitbase.profile import Profile
2525
from diffpy.srfit.fitbase.parameter import Parameter
2626
from diffpy.srfit.exceptions import SrFitError
27-
from diffpy.srfit.tests.utils import noObserversInGlobalBuilders
27+
from .utils import noObserversInGlobalBuilders
2828

2929

3030
class TestContribution(unittest.TestCase):

tests/testdiffpyparset.py renamed to tests/test_diffpyparset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import numpy
2222

23-
from diffpy.srfit.tests.utils import has_structure, _msg_nostructure
23+
from .utils import has_structure, _msg_nostructure
2424

2525
# Global variables to be assigned in setUp
2626
Atom = Lattice = Structure = DiffpyStructureParSet = None

tests/testequation.py renamed to tests/test_equation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
import diffpy.srfit.equation.literals as literals
2121
from diffpy.srfit.equation import Equation
22-
from diffpy.srfit.tests.utils import _makeArgs
23-
from diffpy.srfit.tests.utils import noObserversInGlobalBuilders
22+
from .utils import _makeArgs
23+
from .utils import noObserversInGlobalBuilders
2424

2525

2626
class TestEquation(unittest.TestCase):

tests/testfitrecipe.py renamed to tests/test_fitrecipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from diffpy.srfit.fitbase.fitcontribution import FitContribution
2424
from diffpy.srfit.fitbase.profile import Profile
2525
from diffpy.srfit.fitbase.parameter import Parameter
26-
from diffpy.srfit.tests.utils import capturestdout
26+
from .utils import capturestdout
2727

2828

2929
class TestFitRecipe(unittest.TestCase):

tests/testfitresults.py renamed to tests/test_fitresults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from diffpy.srfit.fitbase.fitrecipe import FitRecipe
2121
from diffpy.srfit.fitbase.fitresults import initializeRecipe
22-
from diffpy.srfit.tests.utils import datafile
22+
from .utils import datafile
2323

2424

2525
class TestInitializeRecipe(unittest.TestCase):

tests/testliterals.py renamed to tests/test_literals.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def testAddLiteral(self):
118118
"""Test adding a literal to an operator node."""
119119
op = self.op
120120

121-
self.assertRaises(ValueError, op.getValue)
121+
self.assertRaises(TypeError, op.getValue)
122122
op._value = 1
123123
self.assertEqual(op.getValue(), 1)
124124

@@ -127,7 +127,7 @@ def testAddLiteral(self):
127127
b = literals.Argument(name = "b", value = 0)
128128

129129
op.addLiteral(a)
130-
self.assertRaises(ValueError, op.getValue)
130+
self.assertRaises(TypeError, op.getValue)
131131

132132
op.addLiteral(b)
133133
self.assertAlmostEqual(0, op.value)

0 commit comments

Comments
 (0)