Beispiel #1
0
def test_load_custom_fields_none():
    """Check if None value return empty dict for custom fields."""
    assert load_custom_fields(None) == {}
Beispiel #2
0
def test_load_custom_fields_json():
    """Check if custom fields can be loaded using JSON data."""
    assert load_custom_fields(('{"isautomated":true}',)) == {"isautomated": True}
Beispiel #3
0
def test_load_custom_fields():
    """Check if custom fields can be loaded using = notation."""
    assert load_custom_fields(("isautomated=true",)) == {"isautomated": "true"}
Beispiel #4
0
def test_load_custom_fields_empty():
    """Check if empty value return empty dict for custom fields."""
    assert load_custom_fields(("",)) == {}
Beispiel #5
0
def test_load_custom_fields():
    """Check if custom fields can be loaded using = notation."""
    assert load_custom_fields(('isautomated=true',)) == {
        'isautomated': 'true'
    }
Beispiel #6
0
def test_load_custom_fields_json():
    """Check if custom fields can be loaded using JSON data."""
    assert load_custom_fields(('{"isautomated":true}', )) == {
        'isautomated': True,
    }
Beispiel #7
0
def test_load_custom_fields_none():
    """Check if None value return empty dict for custom fields."""
    assert load_custom_fields(None) == {}
Beispiel #8
0
def test_load_custom_fields_empty():
    """Check if empty value return empty dict for custom fields."""
    assert load_custom_fields(('', )) == {}
Beispiel #9
0
def test_load_custom_fields():
    """Check if custom fields can be loaded using = notation."""
    assert load_custom_fields(('isautomated=true', )) == {
        'isautomated': 'true'
    }