al-baba / codespace_application_testing

application within my personal 'ownership' for personal codespaces use. can fork from here.
0 stars 0 forks source link

args #27

Open al-baba opened 3 weeks ago

al-baba commented 3 weeks ago

in order to get full coverage you need to stress test the args

and to do this you need to request with those options:

response = client.get('/name/Alejandro')

but more like:

response = client.get('/LOVD/lovd/GRCh38/17-50198002-C-A/all/mane/True/False?**content-type=application%2Fjson**')  # Send a GET request to the /hello/ endpoint
al-baba commented 3 weeks ago

Representations

  • Adds a response-type into the "Response content type" drop-down menu displayed in Swagger
  • When selected, the APP will return the correct response-header and content type
  • The default for flask-RESTPlus is application/json

Note

  • These will only be used by namespaces so are undecorated. Decorated versions will appear in app.py

uncovered


def xml(data, code, headers):
    data = dicttoxml(data)
    resp = make_response(data, code)
    resp.headers['Content-Type'] = 'text/xml'
    return resp
al-baba commented 2 weeks ago

example: http://127.0.0.1:5000/hello/?content-type=application%2Fjson