Pytest Day 2 of 3
Day 11 of 100
I have very much mixed emotions about this challenge - it was a bug stretch for me. It was a pybites blog challenge on writing tests for a Flask rest API. The challenge included downloading the code blog repo, forking it into my own branch, and eventually re-adding my code through a pull request. Just getting the project set up taught me a ton about git and how to work with repos that are not my own.
Then came the Flask rest API and the JSON. I know what both are but have never worked with them before. And I had never written a single pytest before yesterday, let alone one for Flask. I was able to get a very simple test written on my own before diving head first into the online blogs and peeking at the other code. Just learning how interact with JSON was a challenge and I don't really understand what I did but a ended up getting tests written for two of the five routes and might try to write some more tomorrow. I don't think I did enough to check in my code with a PR yet, we'll see.