This repo contains a zero dependency python server that serves some html and a json endpoint that enables us to test a swath of situations we hit in 'real' software. The goal is to be able to quickly launch synthetic setups to check that we can get playwright to do what we need in a highly controlled environment before moving it into the real setup needed.
For now, we've been able to not use any dependencies and still get a setup that covers the scenarios we need. That may change in the future.
python3 main.py
Will start on localhost:8002 by default (can change port by modifying main.py)
whoami/index.json
allows us to serve "data" from endpoints as if being hit by a real server. This won't work for dynamic data, but will work for endpoints that can be fully mocked. Using index.json pattern will properly return application/json.