@pytest.mark.parametrize('orgname, expected', [(None, ''), ('test', 'test')])
def test_unset_organization(qapp, orgname, expected):
 qapp.setOrganizationName(orgname)
 assert (qapp.organizationName() == expected)
 with qtutils.unset_organization():
  assert (qapp.organizationName() == '')
 assert (qapp.organizationName() == expected)

@ pytest . mark . parametrize ( 'orgname, expected' , [ ( None , '' ) , ( 'test' , 'test' ) ] ) def test_unset_organization ( qapp , orgname , expected ) : qapp . setOrganizationName ( orgname ) assert ( qapp . organizationName ( ) == expected ) with qtutils . unset_organization ( ) : assert ( qapp . organizationName ( ) == '' ) assert ( qapp . organizationName ( ) == expected )
test unset_organization .