Example #1
0
def test_get_json_schema(app):
    """Testing `get_json_schema()`."""
    assert '"title": "Service Name",' in \
        get_json_schema('claims.claimant')
    assert 'HTTP URL addressing the service home page' in \
        get_json_schema('claims.claimant')
    assert '"required": ["type", "description", "url", ' + \
        '"example_value", "example_url"],' in \
        get_json_schema('claims.persistent_id')
Example #2
0
def test_get_json_schema(app):
    """Testing `get_json_schema()`."""
    assert '"title": "Service Name",' in \
        get_json_schema('claims.claimant')
    assert 'HTTP URL addressing the service home page' in \
        get_json_schema('claims.claimant')
    assert '"required": ["type", "description", "url", ' + \
        '"example_value", "example_url"],' in \
        get_json_schema('claims.persistent_id')
Example #3
0
def claimsubmit():
    """Render the claim submission form page."""
    id_types = IdentifierType.query.all()
    return render_template(
        "claim_submit.html",
        json_schema=get_json_schema('claims.claim'),
        identifiersJson=[id_type.name for id_type in id_types])
Example #4
0
def claimsubmit():
    """Render the claim submission form page."""
    id_types = IdentifierType.query.all()
    return render_template(
        "claim_submit.html",
        json_schema=get_json_schema('claims.claim'),
        identifiersJson=[id_type.name for id_type in id_types]
    )
Example #5
0
def subscription():
    """Render the subscription form page."""
    return render_template(
        "subscription.html",
        json_schema=get_json_schema('claims.claimant')
    )
Example #6
0
def subscription():
    """Render the subscription form page."""
    return render_template("subscription.html",
                           json_schema=get_json_schema('claims.claimant'))
Example #7
0
def subscription():
    return render_template(
        "subscription.html",
        json_schema=get_json_schema('claims.claimant')
    )