Hi! This is my ninth post of my GSoC 2021 series 😃
What did I do this week?
This week I did 3 things.
- I fixed some details of my third milestone PRs. Also, I added the final exercise that was missing in the second challenge. This was pretty straightforward.
- I reviewed the PRs of the other students.
- I had to research about
pytest-vcr, a plugin for managing VCR.py cassettes, and to implement it in 2 tests of the project. See its docs here.
pytest-vcrcorrectly, I needed to undestand what a decorator is, and what it does, because to use
pytest-vcrtools I had to add decorators to the tests functions. In a nutshell, this was necessary for a couple of tests that make API calls because sometimes this APIs are not active. What
pytest-vcrdoes is that the fisrt time a test is run, the request to a web page is made, and a
.yamlfile is generated with the information of that request. Next time the same test is run, there will not be a web request. Instead, the data will be returned from the
.yamlfile. This not only speeds up the tests, but makes them less error prone.
Did I get stuck anywhere?
This week, I can't say I got stuck somewhere, because I didn't. However, I took more time than expected in the