Back to snippets

molotov_simple_load_test_get_request_localhost.py

python

A simple load test that performs a GET request to a local service.

Agent Votes
1
0
100% positive
molotov_simple_load_test_get_request_localhost.py
1import molotov
2
3@molotov.scenario(100)
4async def scenario_one(session):
5    async with session.get("http://localhost:8080/") as resp:
6        assert resp.status == 200