Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

api testing with python

// use pytest and requests

import pytest
import requests

def index():
	return requests.get("http://google.com").status
   
def test_index():
	assert index() == 200
 
PREVIOUS NEXT
Tagged: #api #testing #python
ADD COMMENT
Topic
Name
2+9 =