Things learnt about Testing
-
How Django’s
override_settings
decorator causes flakey tests
on
-
How the
new
argument to mock.patch
is shared between parameterized tests
on
-
That Postgres sequences aren’t restored after a transaction rollback
on
-
Python tests using
moto
should be explicit about AWS regions
on
-
About indirect parametrization with Pytest
on
-
How to use
xmllint
to extract the failing test filenames from a JUnit-XML file
on
-
How to override Django’s settings for every method in a test class
on
-
How to profile Pytest tests
on
-
About Factory Boy’s
SelfAttribute
class
on
-
Factory boy can be used to build dicts
on
-
Django doesn’t flush caches between tests
on
-
That Pytest’s “keyword expression” filtering supports Python conditionals
on
-
That FreezeGun doesn’t work with Pytest fixtures (unless you use
pytest-freezegun
)
on
-
You can have class-scoped autouse pytest fixtures
on
-
Pytest doesn’t play nicely with ipdb
on
-
How to easily disable a CircleCI workflow
on
-
You can stack
pytest
’s parametrize
decorators
on
-
You can label parameterized fixtures with pytest
on
Browse all tags or all posts.