Let's talk!
Clients
Services
Blog
About us
Careers
Let's talk!
SOFTWARE
HOUSE
Clients
Services
MVP Development
Web Development
Staff Augmentation
Insights
Blog
Learnings
Careers
About us
Contact us
Learnings
Boost your knowledge with the insights from our expert team.
accessibility
accessibility
agile
agile
ai
ai
api
api
architecture
architecture
aws
aws
career
career
celery
celery
communication
communication
concurrency
concurrency
css
css
data
data
database
database
db
db
debug
debug
design
design
design system
design system
development
development
devops
devops
django
django
docker
docker
documentation
documentation
figma
figma
frontend
frontend
git
git
html
html
javascript
javascript
js
js
leadership
leadership
management
management
metrics
metrics
ml
ml
orm
orm
performance
performance
postgres
postgres
process
process
product
product
product design
product design
python
python
react
react
redux
redux
research
research
security
security
software
software
sql
sql
sre
sre
test
test
testing
testing
tests
tests
typescript
typescript
ui
ui
ux
ux
web
web
workflow
workflow
<p>Effective TDD: Tricks to speed up Django tests (up to 10x faster!) </p>
↗
http://www.daveoncode.com/2013/09/23/effective-tdd-tricks-to-speed-up-django-tests-up-to-10x-faster/
Flávio Juvenal
May 31, 2018
Topics:
django, test
<p><code>powerset</code> recipe from itertools is very useful for testing all cases of a function that accepts a list of choices: #itertools-recipes</p>
↗
https://docs.python.org/3/library/itertools.html
Flávio Juvenal
Apr 13, 2018
Topics:
python, test
<p>Mocking image downloads for libs that actually check the file's contents, like Fleep </p>
↗
https://stackoverflow.com/a/43708272/1060162
Luca Bezerra
Jan 29, 2018
Topics:
fleep, image, mock, python, requests, test
<p>Use <code>django.test.override_settings</code> decorator to override specific settings for test methods</p>
↗
Carlos Coelho
Jan 8, 2018
Topics:
django, test
<p>How to test if a logger is called: </p>
↗
http://tohyongcheng.github.io/python/2016/02/20/testing-your-logger-in-python-unit-tests.html
Rebeca Sarai
Jan 3, 2018
Topics:
django, loggers, test
<p>Use python freezegun lib to freeze your dates when making tests</p>
↗
https://github.com/spulec/freezegun
Anderson Resende
Nov 9, 2017
Topics:
python, test
<p>Custom context managers in Python unit tests for better fixtures: </p>
↗
https://medium.com/@hakibenita/how-we-replaced-dozens-of-test-fixtures-with-one-simple-function-bac73bfc277d
Flávio Juvenal
Aug 19, 2017
Topics:
python, test
<p>If you set the parameter <code>side_effect</code> in <code>mock.patch()</code> as an iterable each call to the mock will return the next value from the iterable.</p>
↗
Victor Carriço
Jul 11, 2017
Topics:
mock, python, test
<p>For tests use <code>assertCountEqual</code>, using two sequences it tests if the first contains the same elements as second, regardless of their order.</p>
↗
Rebeca Sarai
Apr 25, 2017
Topics:
python, test
<p>Need to use <code>tox</code> while using <code>pyenv</code>? Don't forget to use the packages <code>tox-pyenv</code> for <code>pyenv</code> support and <code>pyenv-implicit</code> to make it find the correct python executable.</p>
↗
Carlos Coelho
Apr 8, 2017
Topics:
pyenv, python, test, tox
<p>To use querystring in urls when using <code>response</code> library for tests, remember to set <code>match_querystring=True</code> in your <code>add</code> method</p>
↗
Carlos Coelho
Apr 5, 2017
Topics:
python, test
<p>If you are testing sending emails in your project and are using mock, use <code>call_args_list</code> method to see a list of all the calls made to the mock object in sequence: #unittest.mock.Mock.call_args_list</p>
↗
https://docs.python.org/3/library/unittest.mock.html
Rebeca Sarai
Mar 30, 2017
Topics:
python, test
<p>"acid test" for image scaling software: </p>
↗
https://news.ycombinator.com/item?id=13580162
Flávio Juvenal
Feb 28, 2017
Topics:
image, test
<p>Big List of Naughty Strings which have a high probability of causing issues when used as user-input data: </p>
↗
https://github.com/minimaxir/big-list-of-naughty-strings
Flávio Juvenal
Feb 28, 2017
Topics:
string, test
Previous
Close Cookie Preference Manager
Cookie Settings
By clicking “Accept all”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts.
Check our privacy policies.
Strictly Necessary (Always Active)
Cookies required to enable basic website functionality.
Analytics
Cookies helping understand how this website performs, how visitors interact with the site, and whether there may be technical issues.
Marketing
Cookies used to deliver advertising that is more relevant to you and your interests.
Personalization
Cookies allowing the website to remember choices you make (such as your user name, language, or the region you are in).
Save settings
Accept all
We use Cookies to promote our services.
Settings and Privacy.
Accept