Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. # tests/test_deploy_api.py
  2. import pytest
  3. from deploy_api import APP
  4.  
  5. @pytest.fixture()
  6. def app():
  7.     app = APP()
  8.     return app
  9.  
  10. def test_apiStatus_ruok_pass(client):
  11.     response = client.get('/v1/status/ruok')
  12.     assert response.status_code == 200
  13.     assert response.json == {'Status': 'OK'}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement