Testing apps that use requests without using mock.
Interview with Ian Cordasco (@sigmavirus24 (https://github.com/sigmavirus24))
Topics:
Betamax - python library for replaying requests interactions for use in testing.
requests
github3.py
Pycon 2015 talk: Ian Cordasco - Cutting Off the Internet: Testing Applications that Use Requests - PyCon 2015
Pytest and using Betamax with pytest fixtures
The utility (or uselessness) of teaching programming with Java (My own rant mainly)
Rackspace and Ian’s role at Rackspace and OpenStack
Python Code Quality Authority: flake8, pep8, mccabe, pylint, astroid, …
Static code analysis and what to use which tool when.
Raymond Hettinger - Beyond PEP 8 -- Best practices for beautiful intelligible code - PyCon 2015
Links:
Testing Python-Requests with Betamax (https://semaphoreci.com/community/tutorials/testing-python-requests-with-betamax)
Cutting Off the Internet: Testing Applications that Use Requests - PyCon 2015 (https://youtu.be/YHbKxFcDltM?t=1m55s)
github3.py (https://pypi.python.org/pypi/github3.py)
requests (http://docs.python-requests.org/en/master/)
Rackspace (https://www.rackspace.com/)
Openstack (https://www.openstack.org/)
Python Code Quality Authority (https://github.com/PyCQA) and documentation (http://meta.pycqa.org/en/latest/)
GitLab (https://about.gitlab.com/)
Raymond Hettinger - Beyond PEP 8 -- Best practices for beautiful intelligible code - PyCon 2015 (https://www.youtube.com/watch?v=wf-BqAjZb8M)
Other Betamax resources:
Betamaxing Boto3 (http://www.roadsi.de/betamaxing-boto3.html)
Using Betamax with pytest fixtures (http://www.coglib.com/~icordasc/blog/2015/07/betamax-050-now-with-a-pytest-fixture.html)
Isolated @memoize (http://nedbatchelder.com/blog/201601/isolated_memoize.html)
view more