LAMaglan / PokeFightSimulator

A (simple) fight simulator between any two Pokemon using FastAPI with Jinja frontend
0 stars 0 forks source link

Add tests, that get run with github actions #18

Open LAMaglan opened 3 months ago

LAMaglan commented 3 months ago

Run tests e.g. on every merge to main, or any push request

LAMaglan commented 3 months ago

Have attempted it here, but mock GET requests return HTML code, even though JSON is stated? https://github.com/LAMaglan/PokeFightSimulator/tree/pytest-start

LAMaglan commented 3 months ago

Maybe check FastAPI documentation: https://fastapi.tiangolo.com/tutorial/testing/