~/talk

Django and Wiremock: End-to-end tests made easy

Talkat Django Day Copenhagen 2022 · on Friday, 2022-04-08· [django, testing]
links:none on file
slides:none on file

Django app that manages Minecraft servers sends HTTP broadcasts using requests; unit tests mocked requests but refactors and network flakiness motivate real end-to-end tests. WireMock runs as jar or Docker and returns configurable responses, can simulate 500/latency/stateful retries and record/playback mappings; tests start the app (migrations, session login), hit its public endpoints via requests, assert response codes and request counts, and use Testcontainers in CI. WireMock is proven in multiple projects over five years.

AI-written summary · about

  1. 0:00Intro
  2. 5:06About Python
  3. 6:02Test Driven Development
  4. 7:38A code without test is broken by design
  5. 8:12Test as real users
  6. 8:46Server Status
  7. 10:01Broadcast Message
  8. 12:33Unit Tests
  9. 14:16Questions
  10. 14:57Challenges
  11. 17:49What is Wiremock
  12. 18:40More about Wiremock
  13. 21:09How to mock requests
  14. 24:28Endtoend tests
  15. 28:03Debugging
  16. 29:42QA
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.