DjangoCon Europe 2023 | Turning test writing into a consistently brief and pleasant experience

Learn how to make test writing a breeze at DjangoCon Europe 2023. Discover tips for brief and pleasant testing, including factories, custom test cases, HTTP mocks, and delegating tasks to free up time for more important work.

Key takeaways
  • Write tests, not too many, mostly integration is a good approach.
  • Don’t love writing tests, but it’s necessary for quality code.
  • Use factories to simplify test writing.
  • Have a custom test case to make tests more maintainable.
  • Use HTTP mock to simplify integration tests.
  • delegate tasks to libraries and tools to free up time for more important work.
  • It’s okay to delete tests that are no longer useful.
  • It’s okay to not have 100% test coverage.
  • Use gestures, Capture changes in code then reset it.