test_PHoleM53 module

class TestPHoleM53[source]

Bases: object

Test that the widget PHoleM53 behave like it should

setup()[source]

Run at the begining of every test to setup the gui

test_init(setup)[source]

Check that the Widget spinbox initialise to the lamination value

test_set_H0(setup)[source]

Check that the Widget allow to update H0

test_set_H1(setup)[source]

Check that the Widget allow to update H1

test_set_H2(setup)[source]

Check that the Widget allow to update H2

test_set_H3(setup)[source]

Check that the Widget allow to update H3

test_set_W1(setup)[source]

Check that the Widget allow to update W1

test_set_W2(setup)[source]

Check that the Widget allow to update W2

test_set_W3(setup)[source]

Check that the Widget allow to update W3

test_set_W4(setup)[source]

Check that the Widget allow to update W4

test_set_material_0(setup)[source]

Check that you can change the material of mat_void

test_set_material_1(setup)[source]

Check that you can change the material of magnet_0

test_set_material_2(setup)[source]

Check that you can change the material of magnet_1

test_comp_output(setup)[source]

Check that comp_output is correctly working

test_PHoleM53_None_Magnet(setup)[source]

Check that you can create PHoleM53 with None for magnet_0

pytestmark = [Mark(name='GUI', args=(), kwargs={})]