Пример #1
0
def test_get_field_ids_from_dict():
    handler = RowHandler()
    assert handler.extract_field_ids_from_dict({
        1: 'Included',
        'field_2': 'Included',
        '3': 'Included',
        'abc': 'Not included',
        'fieldd_3': 'Not included'
    }) == [1, 2, 3]
Пример #2
0
def test_get_field_ids_from_dict():
    handler = RowHandler()
    fields_dict = {
        1: "Included",
        "field_2": "Included",
        "3": "Included",
        "abc": "Not included",
        "fieldd_3": "Not included",
    }
    assert handler.extract_field_ids_from_dict(fields_dict) == [1, 2, 3]