def test_entityViewSchema__specified_deprecated_type_in_properties():
    view_type = 'project'
    properties = {'type': view_type}
    entity_view = EntityViewSchema(parent="idk", properties=properties)
    assert_equals(EntityViewType.PROJECT.value, entity_view.viewTypeMask)
    assert_is_none(entity_view.get('type'))
def test_entityViewSchema__specified_both_type_and_viewTypeMask():
    entity_view = EntityViewSchema(parent="idk", type='folder', includeEntityTypes=[EntityViewType.PROJECT])
    assert_equals(EntityViewType.PROJECT.value, entity_view.viewTypeMask)
    assert_is_none(entity_view.get('type'))
Beispiel #3
0
def test_entityViewSchema__specified_both_type_and_viewTypeMask():
    entity_view = EntityViewSchema(parent="idk",
                                   type='folder',
                                   includeEntityTypes=[EntityViewType.PROJECT])
    assert_equals(EntityViewType.PROJECT.value, entity_view.viewTypeMask)
    assert_is_none(entity_view.get('type'))
def test_entityViewSchema__specified_deprecated_type():
    view_type = 'project'
    entity_view = EntityViewSchema(parent="idk", type=view_type)
    assert_equals(EntityViewType.PROJECT.value, entity_view.viewTypeMask)
    assert_is_none(entity_view.get('type'))
Beispiel #5
0
def test_entityViewSchema__specified_deprecated_type_in_properties():
    view_type = 'project'
    properties = {'type': view_type}
    entity_view = EntityViewSchema(parent="idk", properties=properties)
    assert_equals(EntityViewType.PROJECT.value, entity_view.viewTypeMask)
    assert_is_none(entity_view.get('type'))
Beispiel #6
0
def test_entityViewSchema__specified_deprecated_type():
    view_type = 'project'
    entity_view = EntityViewSchema(parent="idk", type=view_type)
    assert_equals(EntityViewType.PROJECT.value, entity_view.viewTypeMask)
    assert_is_none(entity_view.get('type'))
def test_entityViewSchema__specified_both_type_and_viewTypeMask():
    entity_view = EntityViewSchema(parent="idk", type='folder', includeEntityTypes=[EntityViewType.PROJECT])
    assert EntityViewType.PROJECT.value == entity_view.viewTypeMask
    assert entity_view.get('type') is None
def test_entityViewSchema__specified_deprecated_type_in_properties():
    view_type = 'project'
    properties = {'type': view_type}
    entity_view = EntityViewSchema(parent="idk", properties=properties)
    assert EntityViewType.PROJECT.value == entity_view.viewTypeMask
    assert entity_view.get('type') is None
def test_entityViewSchema__specified_deprecated_type():
    view_type = 'project'
    entity_view = EntityViewSchema(parent="idk", type=view_type)
    assert EntityViewType.PROJECT.value == entity_view.viewTypeMask
    assert entity_view.get('type') is None