test_SMachineType module

class TestSMachineType[source]

Bases: object

Test that the widget SMachineType 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_name(setup)[source]

Check that the Widget allow to update name

test_set_is_inner_rotor(setup)[source]

Check that the Widget allow to update is_inner_rotor

test_set_p_scim(setup)[source]

Check that the Widget allow to update p

test_set_p_dfim(setup)[source]

Check that the Widget allow to update p

test_set_p_spmsm(setup)[source]

Check that the Widget allow to update p

test_set_p_sipmsm(setup)[source]

Check that the Widget allow to update p

test_set_p_ipmsm(setup)[source]

Check that the Widget allow to update p

test_set_p_syrm(setup)[source]

Check that the Widget allow to update p

test_set_p(setup)[source]

Check that the Widget allow to update p when Winding is None

test_set_type_ipmsm(setup)[source]

Check that you can define an IPMSM machine

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