Answers for "api testing with python"

1

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
Posted by: Guest on April-23-2022

Python Answers by Framework

Browse Popular Code Answers by Language