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