コード例 #1
0
ファイル: tests.py プロジェクト: elyezer/betelgeuse
def test_load_custom_fields_none():
    """Check if None value return empty dict for custom fields."""
    assert load_custom_fields(None) == {}
コード例 #2
0
ファイル: tests.py プロジェクト: elyezer/betelgeuse
def test_load_custom_fields_json():
    """Check if custom fields can be loaded using JSON data."""
    assert load_custom_fields(('{"isautomated":true}',)) == {"isautomated": True}
コード例 #3
0
ファイル: tests.py プロジェクト: elyezer/betelgeuse
def test_load_custom_fields():
    """Check if custom fields can be loaded using = notation."""
    assert load_custom_fields(("isautomated=true",)) == {"isautomated": "true"}
コード例 #4
0
ファイル: tests.py プロジェクト: elyezer/betelgeuse
def test_load_custom_fields_empty():
    """Check if empty value return empty dict for custom fields."""
    assert load_custom_fields(("",)) == {}
コード例 #5
0
ファイル: tests.py プロジェクト: omaciel/betelgeuse
def test_load_custom_fields():
    """Check if custom fields can be loaded using = notation."""
    assert load_custom_fields(('isautomated=true',)) == {
        'isautomated': 'true'
    }
コード例 #6
0
ファイル: tests.py プロジェクト: kbidarkar/betelgeuse
def test_load_custom_fields_json():
    """Check if custom fields can be loaded using JSON data."""
    assert load_custom_fields(('{"isautomated":true}', )) == {
        'isautomated': True,
    }
コード例 #7
0
ファイル: tests.py プロジェクト: kbidarkar/betelgeuse
def test_load_custom_fields_none():
    """Check if None value return empty dict for custom fields."""
    assert load_custom_fields(None) == {}
コード例 #8
0
ファイル: tests.py プロジェクト: kbidarkar/betelgeuse
def test_load_custom_fields_empty():
    """Check if empty value return empty dict for custom fields."""
    assert load_custom_fields(('', )) == {}
コード例 #9
0
ファイル: tests.py プロジェクト: kbidarkar/betelgeuse
def test_load_custom_fields():
    """Check if custom fields can be loaded using = notation."""
    assert load_custom_fields(('isautomated=true', )) == {
        'isautomated': 'true'
    }