flakytest.dev anze3db flakytest
Tests / apps/orgs/tests.py

SignupTest::test_signing_up_creates_an_organization

First seen 7 hours ago in 78a4357
CI github-actions:test 5 runs
Average
379 ms
median 403 ms
max 425 ms
Phases
Setup 0.69 ms Call 377 ms Teardown 0.86 ms
Categories
Password hashing 257 ms Database 22 ms App code 0.48 ms Other (Libraries, Templates, Imports, Unsampled, ...) 100 ms

43 database queries per run

Needs 687 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 31 minutes ago · open run
Show pytest frames
setup0.73 ms0.2%
call321 ms99.5%
SignupTest.test_signing_up_creates_an_organizationapps/orgs/tests.py:28 response = self.client.post(291 ms90.2%
Client.postdjango/test/client.py:1153291 ms90.2%
RequestFactory.postdjango/test/client.py:499291 ms90.2%
RequestFactory.genericdjango/test/client.py:671291 ms90.2%
Client.requestdjango/test/client.py:1082291 ms90.2%
ClientHandler.__call__django/test/client.py:186277 ms85.9%
BaseHandler.get_responsedjango/core/handlers/base.py:141277 ms85.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55277 ms85.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:130277 ms85.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55277 ms85.9%
MiddlewareMixin.__call__django/utils/deprecation.py:309277 ms85.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55277 ms85.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:123277 ms85.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55277 ms85.9%
MiddlewareMixin.__call__django/utils/deprecation.py:309276 ms85.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55276 ms85.5%
MiddlewareMixin.__call__django/utils/deprecation.py:309276 ms85.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55276 ms85.5%
MiddlewareMixin.__call__django/utils/deprecation.py:309276 ms85.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55276 ms85.5%
MiddlewareMixin.__call__django/utils/deprecation.py:309276 ms85.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55276 ms85.5%
MiddlewareMixin.__call__django/utils/deprecation.py:309276 ms85.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55276 ms85.5%
MiddlewareMixin.__call__django/utils/deprecation.py:309276 ms85.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55276 ms85.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:34276 ms85.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55276 ms85.5%
BaseHandler._get_responsedjango/core/handlers/base.py:198276 ms85.5%
View.as_view.<locals>.viewdjango/views/generic/base.py:106276 ms85.5%
_multi_decorate.<locals>._wrapperdjango/utils/decorators.py:48276 ms85.5%
rate_limit.<locals>.decorator.<locals>.wrapallauth/decorators.py:12276 ms85.5%
_multi_decorate.<locals>._wrapperdjango/utils/decorators.py:48276 ms85.5%
_multi_decorate.<locals>._wrapperdjango/utils/decorators.py:48276 ms85.5%
sensitive_post_parameters.<locals>.decorator.<locals>.sensitive_post_parameters_wrapperdjango/views/decorators/debug.py:143276 ms85.5%
_multi_decorate.<locals>._wrapperdjango/utils/decorators.py:48276 ms85.5%
never_cache.<locals>._view_wrapperdjango/views/decorators/cache.py:80276 ms85.5%
SignupView.dispatchallauth/account/views.py:162276 ms85.5%
_multi_decorate.<locals>._wrapperdjango/utils/decorators.py:48276 ms85.5%
_multi_decorate.<locals>._wrapperdjango/utils/decorators.py:48276 ms85.5%
never_cache.<locals>._view_wrapperdjango/views/decorators/cache.py:80276 ms85.5%
RedirectAuthenticatedUserMixin.dispatchallauth/account/mixins.py:53276 ms85.5%
CloseableSignupMixin.dispatchallauth/account/mixins.py:118276 ms85.5%
View.dispatchdjango/views/generic/base.py:145276 ms85.5%
AjaxCapableProcessFormViewMixin.postallauth/account/mixins.py:82238 ms73.7%
SignupView.form_validallauth/account/views.py:168231 ms71.6%
SignupForm.try_saveallauth/account/forms.py:497231 ms71.6%
BaseSignupForm.try_saveallauth/account/forms.py:427231 ms71.6%
BaseSignupForm.saveallauth/account/forms.py:437228 ms70.5%
DefaultAccountAdapter.save_userallauth/account/adapter.py:347225 ms69.8%
AbstractBaseUser.set_passworddjango/contrib/auth/base_user.py:94225 ms69.8%
make_passworddjango/contrib/auth/hashers.py:119225 ms69.8%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:335225 ms69.8%
pbkdf2django/utils/crypto.py:77225 ms69.8%
2 smaller frames hidden
BaseSignupForm.saveallauth/account/forms.py:4403 ms1.1%
setup_user_emailallauth/account/utils.py:2092 ms0.7%
cleanup_email_addressesallauth/account/utils.py:1382 ms0.7%
QuerySet.__bool__django/db/models/query.py:4042 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
1 smaller frames hidden
SignupView.form_validallauth/account/views.py:1737 ms2.1%
complete_signupallauth/account/internal/flows/signup.py:1145 ms1.4%
perform_loginallauth/account/internal/flows/login.py:935 ms1.4%
resume_loginallauth/account/internal/flows/login.py:1053 ms1.1%
DefaultAccountAdapter.loginallauth/account/adapter.py:5622 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
complete_signupallauth/account/internal/flows/signup.py:1022 ms0.7%
Signal.senddjango/dispatch/dispatcher.py:2092 ms0.7%
OrgsConfig.ready.<locals>.<lambda>apps/orgs/apps.py:132 ms0.7%
AjaxCapableProcessFormViewMixin.postallauth/account/mixins.py:8138 ms11.8%
BaseForm.is_validdjango/forms/forms.py:20638 ms11.8%
BaseForm.errorsdjango/forms/forms.py:20138 ms11.8%
BaseForm.full_cleandjango/forms/forms.py:33737 ms11.4%
BaseForm._clean_fieldsdjango/forms/forms.py:34528 ms8.6%
Field._clean_bound_fielddjango/forms/fields.py:27228 ms8.6%
EmailField.cleanallauth/account/fields.py:2628 ms8.6%
Field.cleandjango/forms/fields.py:20928 ms8.6%
Field.run_validatorsdjango/forms/fields.py:19428 ms8.6%
EmailValidator.__call__django/core/validators.py:25528 ms8.6%
EmailValidator.validate_domain_partdjango/core/validators.py:26128 ms8.6%
new_method_proxy.<locals>.innerdjango/utils/functional.py:25128 ms8.6%
SimpleLazyObject._setupdjango/utils/functional.py:40428 ms8.6%
_lazy_re_compile.<locals>._compiledjango/utils/regex_helper.py:34928 ms8.6%
compile<stdlib>/re/__init__.py:29128 ms8.6%
_compile<stdlib>/re/__init__.py:35228 ms8.6%
compile<stdlib>/re/_compiler.py:76628 ms8.6%
_code<stdlib>/re/_compiler.py:59928 ms8.6%
_compile<stdlib>/re/_compiler.py:12417 ms5.4%
_compile<stdlib>/re/_compiler.py:11612 ms3.6%
_compile<stdlib>/re/_compiler.py:8812 ms3.6%
_optimize_charset<stdlib>/re/_compiler.py:2735 ms1.4%
_optimize_charset<stdlib>/re/_compiler.py:2725 ms1.4%
_optimize_charset<stdlib>/re/_compiler.py:2742 ms0.7%
_compile<stdlib>/re/_compiler.py:886 ms1.8%
_optimize_charset<stdlib>/re/_compiler.py:2745 ms1.4%
1 smaller frames hidden
_compile<stdlib>/re/_compiler.py:886 ms1.8%
_optimize_charset<stdlib>/re/_compiler.py:2723 ms1.1%
_optimize_charset<stdlib>/re/_compiler.py:2732 ms0.7%
_compile<stdlib>/re/_compiler.py:1815 ms1.4%
_compile<stdlib>/re/_compiler.py:1165 ms1.4%
_compile<stdlib>/re/_compiler.py:885 ms1.4%
_optimize_charset<stdlib>/re/_compiler.py:2722 ms0.7%
2 smaller frames hidden
BaseForm._clean_fieldsdjango/forms/forms.py:3426 ms1.8%
BaseForm._bound_itemsdjango/forms/forms.py:1736 ms1.8%
BaseForm.__getitem__django/forms/forms.py:1946 ms1.8%
Field.get_bound_fielddjango/forms/fields.py:2606 ms1.8%
__init____init__:-16 ms1.8%
BoundField.__init__django/forms/boundfield.py:276 ms1.8%
lazy.<locals>.__wrapper__django/utils/functional.py:1876 ms1.8%
_password_validators_help_text_htmldjango/contrib/auth/password_validation.py:896 ms1.8%
password_validators_help_textsdjango/contrib/auth/password_validation.py:786 ms1.8%
get_default_password_validatorsdjango/contrib/auth/password_validation.py:226 ms1.8%
get_password_validatorsdjango/contrib/auth/password_validation.py:366 ms1.8%
CommonPasswordValidator.__init__django/contrib/auth/password_validation.py:2456 ms1.8%
BaseForm._clean_fieldsdjango/forms/forms.py:3473 ms1.1%
BaseSignupForm.clean_emailallauth/account/forms.py:3693 ms1.1%
BaseSignupForm.validate_unique_emailallauth/account/forms.py:3773 ms1.1%
email_already_existsallauth/account/internal/flows/manage_email.py:2153 ms1.1%
assess_unique_emailallauth/account/internal/flows/manage_email.py:1523 ms1.1%
filter_users_by_emailallauth/account/utils.py:2612 ms0.7%
QuerySet.__iter__django/db/models/query.py:3902 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.7%
ModelIterable.__iter__django/db/models/query.py:952 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:17314 ms4.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6214 ms4.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10413 ms3.9%
WhiteNoise.add_fileswhitenoise/base.py:10813 ms3.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1209 ms2.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1319 ms2.9%
WhiteNoise.get_static_filewhitenoise/base.py:2089 ms2.9%
StaticFile.__init__whitenoise/responders.py:742 ms0.7%
parsedate<stdlib>/email/_parseaddr.py:1852 ms0.7%
StaticFile.__init__whitenoise/responders.py:772 ms0.7%
StaticFile.__init__whitenoise/responders.py:732 ms0.7%
1 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms1.1%
scantreewhitenoise/base.py:2623 ms1.1%
scantreewhitenoise/base.py:2623 ms1.1%
scantreewhitenoise/base.py:2622 ms0.7%
scantreewhitenoise/base.py:2622 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
SignupTest.test_signing_up_creates_an_organizationapps/orgs/tests.py:38 self.assertRedirects(response, reverse("project_create", args=["ada"]))24 ms7.5%
SimpleTestCase.assertRedirectsdjango/test/testcases.py:50124 ms7.5%
Client.getdjango/test/client.py:112424 ms7.5%
RequestFactory.getdjango/test/client.py:47524 ms7.5%
RequestFactory.genericdjango/test/client.py:67124 ms7.5%
Client.requestdjango/test/client.py:108224 ms7.5%
ClientHandler.__call__django/test/client.py:18624 ms7.5%
BaseHandler.get_responsedjango/core/handlers/base.py:14124 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms7.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13024 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms7.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12324 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms7.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3424 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms7.5%
BaseHandler._get_responsedjango/core/handlers/base.py:19824 ms7.5%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:5922 ms6.8%
project_createapps/orgs/views.py:137 return render(14 ms4.3%
renderdjango/shortcuts.py:2514 ms4.3%
render_to_stringdjango/template/loader.py:6214 ms4.3%
Template.renderdjango/template/backends/django.py:10714 ms4.3%
Template.renderdjango/template/base.py:17414 ms4.3%
instrumented_test_renderdjango/test/utils.py:11414 ms4.3%
NodeList.renderdjango/template/base.py:109114 ms4.3%
Node.render_annotateddjango/template/base.py:105214 ms4.3%
ExtendsNode.renderdjango/template/loader_tags.py:16014 ms4.3%
instrumented_test_renderdjango/test/utils.py:11414 ms4.3%
NodeList.renderdjango/template/base.py:109114 ms4.3%
Node.render_annotateddjango/template/base.py:105214 ms4.3%
ExtendsNode.renderdjango/template/loader_tags.py:16014 ms4.3%
instrumented_test_renderdjango/test/utils.py:11414 ms4.3%
NodeList.renderdjango/template/base.py:109114 ms4.3%
Node.render_annotateddjango/template/base.py:105214 ms4.3%
BlockNode.renderdjango/template/loader_tags.py:6614 ms4.3%
NodeList.renderdjango/template/base.py:109114 ms4.3%
Node.render_annotateddjango/template/base.py:105214 ms4.3%
IfNode.renderdjango/template/defaulttags.py:3337 ms2.1%
NodeList.renderdjango/template/base.py:10917 ms2.1%
Node.render_annotateddjango/template/base.py:10527 ms2.1%
SimpleNode.renderdjango/template/library.py:3257 ms2.1%
heroicon_miniheroicons/templatetags/heroicons.py:187 ms2.1%
_render_iconheroicons/templatetags/heroicons.py:397 ms2.1%
_render_iconheroicons/__init__.py:456 ms1.8%
_load_iconheroicons/__init__.py:186 ms1.8%
ZipFile.__init__<stdlib>/zipfile/__init__.py:15056 ms1.8%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:16232 ms0.7%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:16062 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
IncludeNode.renderdjango/template/loader_tags.py:2113 ms1.1%
Template.renderdjango/template/base.py:1763 ms1.1%
instrumented_test_renderdjango/test/utils.py:1143 ms1.1%
NodeList.renderdjango/template/base.py:10913 ms1.1%
Node.render_annotateddjango/template/base.py:10523 ms1.1%
IfNode.renderdjango/template/defaulttags.py:3333 ms1.1%
NodeList.renderdjango/template/base.py:10913 ms1.1%
Node.render_annotateddjango/template/base.py:10523 ms1.1%
ForNode.renderdjango/template/defaulttags.py:2493 ms1.1%
Node.render_annotateddjango/template/base.py:10523 ms1.1%
SimpleNode.renderdjango/template/library.py:3253 ms1.1%
heroicon_miniheroicons/templatetags/heroicons.py:183 ms1.1%
_render_iconheroicons/templatetags/heroicons.py:393 ms1.1%
_render_iconheroicons/__init__.py:453 ms1.1%
_load_iconheroicons/__init__.py:183 ms1.1%
ZipFile.__init__<stdlib>/zipfile/__init__.py:15053 ms1.1%
BlockNode.renderdjango/template/loader_tags.py:663 ms1.1%
NodeList.renderdjango/template/base.py:10913 ms1.1%
Node.render_annotateddjango/template/base.py:10523 ms1.1%
IfNode.renderdjango/template/defaulttags.py:3333 ms1.1%
NodeList.renderdjango/template/base.py:10913 ms1.1%
Node.render_annotateddjango/template/base.py:10523 ms1.1%
IncludeNode.renderdjango/template/loader_tags.py:2113 ms1.1%
Template.renderdjango/template/base.py:1763 ms1.1%
instrumented_test_renderdjango/test/utils.py:1143 ms1.1%
NodeList.renderdjango/template/base.py:10913 ms1.1%
Node.render_annotateddjango/template/base.py:10523 ms1.1%
VariableNode.renderdjango/template/base.py:11563 ms1.1%
render_value_in_contextdjango/template/base.py:11333 ms1.1%
RenderableFieldMixin.__str__django/forms/utils.py:793 ms1.1%
BoundField.as_widgetdjango/forms/boundfield.py:1083 ms1.1%
Widget.renderdjango/forms/widgets.py:3313 ms1.1%
Widget._renderdjango/forms/widgets.py:3363 ms1.1%
BaseRenderer.renderdjango/forms/renderers.py:282 ms0.7%
EngineMixin.get_templatedjango/forms/renderers.py:342 ms0.7%
cached_property.__get__django/utils/functional.py:472 ms0.7%
EngineMixin.enginedjango/forms/renderers.py:382 ms0.7%
DjangoTemplates.__init__django/template/backends/django.py:262 ms0.7%
DjangoTemplates.get_templatetag_librariesdjango/template/backends/django.py:882 ms0.7%
get_installed_librariesdjango/template/backends/django.py:1632 ms0.7%
get_template_tag_modulesdjango/template/backends/django.py:1452 ms0.7%
import_module<stdlib>/importlib/__init__.py:882 ms0.7%
_gcd_import<frozen importlib._bootstrap>:13902 ms0.7%
_find_and_load<frozen importlib._bootstrap>:13502 ms0.7%
_find_and_load_unlocked<frozen importlib._bootstrap>:12982 ms0.7%
_find_spec<frozen importlib._bootstrap>:12222 ms0.7%
1 smaller frames hidden
project_createapps/orgs/views.py:1413 ms1.1%
project_createapps/orgs/views.py:1252 ms0.7%
2 smaller frames hidden
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:562 ms0.7%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:792 ms0.7%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2512 ms0.7%
SimpleLazyObject._setupdjango/utils/functional.py:4042 ms0.7%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:402 ms0.7%
get_userdjango/contrib/auth/middleware.py:202 ms0.7%
SignupTest.test_signing_up_creates_an_organizationapps/orgs/tests.py:37 response = self.client.get(reverse("projects"))2 ms0.7%
Client.getdjango/test/client.py:11242 ms0.7%
RequestFactory.getdjango/test/client.py:4752 ms0.7%
RequestFactory.genericdjango/test/client.py:6712 ms0.7%
Client.requestdjango/test/client.py:10822 ms0.7%
ClientHandler.__call__django/test/client.py:1862 ms0.7%
BaseHandler.get_responsedjango/core/handlers/base.py:1412 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1302 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:342 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms0.7%
BaseHandler._get_responsedjango/core/handlers/base.py:1982 ms0.7%
3 smaller frames hidden
Estimated from 279 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/orgs/tests.py:28
response = self.client.post(
SignupTest.test_signing_up_creates_an_organization · Password hashing
289 ms
apps/orgs/views.py:137
return render(
project_create · Templates
14 ms
apps/orgs/tests.py:38
self.assertRedirects(response, reverse("project_create", args=["ada"]))
SignupTest.test_signing_up_creates_an_organization · Database
2 ms
apps/orgs/models.py:65
return user.is_authenticated and self.membership_set.filter(user=user, role=Membership.Role.OWNER).exists()
Organization.is_owner · Database
2 ms
apps/orgs/models.py:126
membership = Membership.objects.filter(user=user).select_related("organization").order_by("id").first()
ensure_organization · Database
1 ms
apps/orgs/models.py:130
organization = Organization.objects.create(
ensure_organization · Database
1 ms
apps/orgs/tests.py:33
membership = Membership.objects.get(user__email="[email protected]")
SignupTest.test_signing_up_creates_an_organization · Database
1 ms
apps/orgs/tests.py:34
self.assertEqual((membership.organization.slug, membership.role), ("ada", Membership.Role.OWNER))
SignupTest.test_signing_up_creates_an_organization · Database
1 ms
apps/orgs/tests.py:37
response = self.client.get(reverse("projects"))
SignupTest.test_signing_up_creates_an_organization · Database
1 ms
apps/orgs/views.py:74
if not projects.exists():
home · Database
1 ms

Fixtures

Exact setup time
_template_string_if_invalid_marker function 0.06 ms
_live_server_helper function 0.05 ms
_django_set_urlconf function 0.05 ms
_django_db_marker function 0.03 ms
_dj_autoclear_mailbox function 0.03 ms
monkeypatch function 0.03 ms
_django_clear_site_cache function 0.02 ms

Database

43 queries · 19 ms

Repeated queries are usually N+1 lookups: fetch them once with select_related / prefetch_related (or selectinload).

3×
SELECT "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."date_joined" FROM "auth_user" WHERE "a…

Biggest pieces of work

call test body
apps/orgs/tests.py:28
320 ms
call _post_teardown
django/test/testcases.py:1240
1 ms
setup pytest internals 0.73 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 5 results, oldest first in the strip
When Environment Outcome Duration Commit
31 minutes ago CI github-actions:test passed 323 ms 9caa567 main Profile
56 minutes ago CI github-actions:test passed 321 ms ec75501 main Profile
7 hours ago CI github-actions:test passed 425 ms d2c12e5 main Profile
7 hours ago CI github-actions:test passed 403 ms 0b902f6 main Profile
7 hours ago CI github-actions:test passed 423 ms 78a4357 main Profile