Skip to content

Commit b9a9b83

Browse files
committed
MNT: convert TestLoadProject to GUITestCase
Ensure it uses test-specific pdfguicontrol factory.
1 parent 3a28e8f commit b9a9b83

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/diffpy/pdfgui/tests/TestLoadProject.py

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

2222
from diffpy.pdfgui.control.controlerrors import ControlFileError
2323
from diffpy.pdfgui.tui import LoadProject
24-
from diffpy.pdfgui.tests.testutils import datafile
24+
from diffpy.pdfgui.tests.testutils import GUITestCase, datafile
2525

26+
# ----------------------------------------------------------------------------
2627

27-
##############################################################################
28-
class TestLoadProject(unittest.TestCase):
28+
class TestLoadProject(GUITestCase):
2929

3030
prj_lcmo = None
3131
prj_lcmo_full = None
@@ -114,6 +114,8 @@ def test_getDopings(self):
114114

115115
# End of class TestLoadProject
116116

117+
# ----------------------------------------------------------------------------
118+
117119
if __name__ == '__main__':
118120
unittest.main()
119121

0 commit comments

Comments
 (0)