tests: update tests for all envs
tests: update tests for all envs

- use `assert Mock.called` instead of `Mock.assert_called()`
- correct flake8 complaints of imports order and long lines

AltSchool/django-allauth,AltSchool/django-allauth,AltSchool/django-allauth