예제 #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')
예제 #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')
예제 #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])
예제 #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]
    )
예제 #5
0
def subscription():
    """Render the subscription form page."""
    return render_template(
        "subscription.html",
        json_schema=get_json_schema('claims.claimant')
    )
예제 #6
0
def subscription():
    """Render the subscription form page."""
    return render_template("subscription.html",
                           json_schema=get_json_schema('claims.claimant'))
예제 #7
0
def subscription():
    return render_template(
        "subscription.html",
        json_schema=get_json_schema('claims.claimant')
    )