Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import pytest
import session_helper
import my_apis_helper
import config
def test_my_apis():
http_session = session_helper.create_http_session(*args)
#######################
#assert on http_session
#######################
token_1 = my_apis_helper.authenticate(
http_session, config.user_credentials['user_1']
)
##################
#assert on token_1
##################
my_data = {...}
some_id = my_apis_helper.post_my_object(
http_session, token_1, my_data
)
##################
#assert on some_id
##################
some_data = my_apis_helper.get_my_object(
http_session, token_1, some_id
)
##################################
#assert on some_data using my_data
##################################
session_helper.clean_up(http_session)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.