Skip to content

Speed up tests

Piotr Gawron requested to merge speed-up-tests into master

Performance refactor:

  • tests requiring logged user should create workers on demand - creation is expesive
  • gitlab jobs don't require makemigrations && migrate - test database is create separately and all migrations are applied anyway
  • when creating user with create_user method the password needs to be hashed which takes time, therefore using precomputed hash value with create() method speeds up the test creation
Edited by Piotr Gawron

Merge request reports

Loading