Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # tests/test_deploy_api.py
- import pytest
- from deploy_api import APP
- @pytest.fixture()
- def app():
- app = APP()
- return app
- def test_apiStatus_ruok_pass(client):
- response = client.get('/v1/status/ruok')
- assert response.status_code == 200
- assert response.json == {'Status': 'OK'}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement