Skip to content

Commit 4a00cb8

Browse files
committed
fix: rename test_data back to testdata and import utils locally
1 parent 66dc962 commit 4a00cb8

22 files changed

+20
-20
lines changed

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

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/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/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/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/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/test_objcrystparset.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_pyobjcryst, _msg_nopyobjcryst
22+
from .utils import has_pyobjcryst, _msg_nopyobjcryst
2323

2424
# Global variables to be assigned in setUp
2525
ObjCrystCrystalParSet = spacegroups = None

tests/test_pdf.py

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

2222
import numpy
2323

24-
from diffpy.srfit.tests.utils import datafile
25-
from diffpy.srfit.tests.utils import has_srreal, _msg_nosrreal
26-
from diffpy.srfit.tests.utils import has_structure, _msg_nostructure
24+
from .utils import datafile
25+
from .utils import has_srreal, _msg_nosrreal
26+
from .utils import has_structure, _msg_nostructure
2727
from diffpy.srfit.pdf import PDFGenerator, PDFParser, PDFContribution
2828
from diffpy.srfit.exceptions import SrFitError
2929

tests/test_profile.py

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

2424
from diffpy.srfit.fitbase.profile import Profile
2525
from diffpy.srfit.exceptions import SrFitError
26-
from diffpy.srfit.tests.utils import datafile
26+
from .utils import datafile
2727

2828

2929
class TestProfile(unittest.TestCase):

tests/test_recipeorganizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from diffpy.srfit.fitbase.recipeorganizer import equationFromString
2424
from diffpy.srfit.fitbase.recipeorganizer import RecipeContainer
2525
from diffpy.srfit.fitbase.recipeorganizer import RecipeOrganizer
26-
from diffpy.srfit.tests.utils import capturestdout
26+
from .utils import capturestdout
2727

2828
import numpy
2929

0 commit comments

Comments
 (0)