mantidimaging.gui.windows.welcome_screen.tests.presenter_test module#

class mantidimaging.gui.windows.welcome_screen.tests.presenter_test.WelcomeScreenPresenterTest(methodName='runTest')[source]#

Bases: TestCase

setUp()#

Hook method for setting up the test fixture before exercising it.

classmethod setUpClass()#

Hook method for setting up class fixture before running tests in the class.

tearDown()#

Hook method for deconstructing the test fixture after testing it.

classmethod tearDownClass()#

Hook method for deconstructing the class fixture after running all tests in the class.

Test that add_link(…) calls view.add_link(…) with correct HTML and increments link_count.

test_check_issues(cuda_check_mock, versions_mock)[source]#

If there’s a needed update and no CUDA, we expect two lines of issues.

test_init()[source]#

Ensure do_set_up() calls set_version_label(…), set_up_links(), and check_issues().

test_no_issues_added(cuda_check_mock, versions_mock)[source]#

If there’s no needed update and CUDA is present, no issues are reported to the view.

test_show()[source]#

Ensure the presenter’s show() method calls the view’s show().