flakytest.dev anze3db flakytest
Tests / ft/tests.py

TestAccountPages::test_signup

First seen 7 hours ago in 78a4357
CI github-actions:test 5 runs
Average
276 ms
median 271 ms
max 342 ms
Phases
Setup 0.79 ms Call 275 ms Teardown 0.18 ms
Categories
Password hashing 244 ms Database 15 ms Other (Libraries, Templates, Unsampled, pytest) 17 ms

26 database queries per run

Needs 0 KB of memory (max 0 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 14 minutes ago · open run
Show pytest frames
call270 ms99.6%
TestAccountPages.test_signupft/tests.py:159 response = self.client.post(254 ms93.7%
Client.postdjango/test/client.py:1153254 ms93.7%
RequestFactory.postdjango/test/client.py:499254 ms93.7%
RequestFactory.genericdjango/test/client.py:671254 ms93.7%
Client.requestdjango/test/client.py:1082254 ms93.7%
ClientHandler.__call__django/test/client.py:186254 ms93.7%
BaseHandler.get_responsedjango/core/handlers/base.py:141254 ms93.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55254 ms93.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:130254 ms93.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55254 ms93.7%
MiddlewareMixin.__call__django/utils/deprecation.py:309254 ms93.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55254 ms93.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:123254 ms93.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55254 ms93.7%
MiddlewareMixin.__call__django/utils/deprecation.py:309253 ms93.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55253 ms93.2%
MiddlewareMixin.__call__django/utils/deprecation.py:309253 ms93.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55253 ms93.2%
MiddlewareMixin.__call__django/utils/deprecation.py:309253 ms93.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55253 ms93.2%
MiddlewareMixin.__call__django/utils/deprecation.py:309253 ms93.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55253 ms93.2%
MiddlewareMixin.__call__django/utils/deprecation.py:309252 ms92.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55252 ms92.8%
MiddlewareMixin.__call__django/utils/deprecation.py:309252 ms92.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55252 ms92.8%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:34252 ms92.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:55252 ms92.8%
BaseHandler._get_responsedjango/core/handlers/base.py:198252 ms92.8%
View.as_view.<locals>.viewdjango/views/generic/base.py:106252 ms92.8%
_multi_decorate.<locals>._wrapperdjango/utils/decorators.py:48252 ms92.8%
rate_limit.<locals>.decorator.<locals>.wrapallauth/decorators.py:12252 ms92.8%
_multi_decorate.<locals>._wrapperdjango/utils/decorators.py:48252 ms92.8%
_multi_decorate.<locals>._wrapperdjango/utils/decorators.py:48252 ms92.8%
sensitive_post_parameters.<locals>.decorator.<locals>.sensitive_post_parameters_wrapperdjango/views/decorators/debug.py:143252 ms92.8%
_multi_decorate.<locals>._wrapperdjango/utils/decorators.py:48252 ms92.8%
never_cache.<locals>._view_wrapperdjango/views/decorators/cache.py:80252 ms92.8%
SignupView.dispatchallauth/account/views.py:162252 ms92.8%
_multi_decorate.<locals>._wrapperdjango/utils/decorators.py:48252 ms92.8%
_multi_decorate.<locals>._wrapperdjango/utils/decorators.py:48252 ms92.8%
never_cache.<locals>._view_wrapperdjango/views/decorators/cache.py:80252 ms92.8%
RedirectAuthenticatedUserMixin.dispatchallauth/account/mixins.py:53252 ms92.8%
CloseableSignupMixin.dispatchallauth/account/mixins.py:118252 ms92.8%
View.dispatchdjango/views/generic/base.py:145252 ms92.8%
AjaxCapableProcessFormViewMixin.postallauth/account/mixins.py:82247 ms91.1%
SignupView.form_validallauth/account/views.py:168241 ms89.0%
SignupForm.try_saveallauth/account/forms.py:497241 ms89.0%
BaseSignupForm.try_saveallauth/account/forms.py:427241 ms89.0%
BaseSignupForm.saveallauth/account/forms.py:437239 ms88.1%
DefaultAccountAdapter.save_userallauth/account/adapter.py:347236 ms86.8%
AbstractBaseUser.set_passworddjango/contrib/auth/base_user.py:94236 ms86.8%
make_passworddjango/contrib/auth/hashers.py:119236 ms86.8%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:335236 ms86.8%
pbkdf2django/utils/crypto.py:77236 ms86.8%
DefaultAccountAdapter.save_userallauth/account/adapter.py:3512 ms0.9%
DefaultAccountAdapter.populate_usernameallauth/account/adapter.py:3132 ms0.9%
DefaultAccountAdapter.generate_unique_usernameallauth/account/adapter.py:3192 ms0.9%
generate_unique_usernameallauth/utils.py:1042 ms0.9%
QuerySet.__iter__django/db/models/query.py:3902 ms0.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.9%
FlatValuesListIterable.__iter__django/db/models/query.py:2772 ms0.9%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms0.9%
1 smaller frames hidden
BaseSignupForm.saveallauth/account/forms.py:4402 ms0.9%
setup_user_emailallauth/account/utils.py:2092 ms0.9%
cleanup_email_addressesallauth/account/utils.py:1382 ms0.9%
QuerySet.__bool__django/db/models/query.py:4042 ms0.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.9%
ModelIterable.__iter__django/db/models/query.py:952 ms0.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.9%
Cursor.executepsycopg/cursor.py:1132 ms0.9%
Connection.waitpsycopg/connection.py:4952 ms0.9%
SignupView.form_validallauth/account/views.py:1736 ms2.1%
complete_signupallauth/account/internal/flows/signup.py:1025 ms1.7%
Signal.senddjango/dispatch/dispatcher.py:2095 ms1.7%
OrgsConfig.ready.<locals>.<lambda>apps/orgs/apps.py:135 ms1.7%
ensure_organizationapps/orgs/models.py:126 membership = Membership.objects.filter(user=user).select_related("organization").order_by("id").first()2 ms0.9%
QuerySet.firstdjango/db/models/query.py:11452 ms0.9%
QuerySet.__iter__django/db/models/query.py:3902 ms0.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.9%
ModelIterable.__iter__django/db/models/query.py:952 ms0.9%
2 smaller frames hidden
1 smaller frames hidden
AjaxCapableProcessFormViewMixin.postallauth/account/mixins.py:815 ms1.7%
BaseForm.is_validdjango/forms/forms.py:2065 ms1.7%
BaseForm.errorsdjango/forms/forms.py:2015 ms1.7%
BaseForm.full_cleandjango/forms/forms.py:3375 ms1.7%
BaseForm._clean_fieldsdjango/forms/forms.py:3475 ms1.7%
BaseSignupForm.clean_emailallauth/account/forms.py:3695 ms1.7%
BaseSignupForm.validate_unique_emailallauth/account/forms.py:3775 ms1.7%
email_already_existsallauth/account/internal/flows/manage_email.py:2155 ms1.7%
assess_unique_emailallauth/account/internal/flows/manage_email.py:1525 ms1.7%
filter_users_by_emailallauth/account/utils.py:2612 ms0.9%
QuerySet.__iter__django/db/models/query.py:3902 ms0.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms0.9%
ModelIterable.__iter__django/db/models/query.py:952 ms0.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms0.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.9%
Cursor.executepsycopg/cursor.py:1132 ms0.9%
Connection.waitpsycopg/connection.py:4952 ms0.9%
filter_users_by_emailallauth/account/utils.py:2752 ms0.9%
QuerySet._iteratordjango/db/models/query.py:5082 ms0.9%
1 smaller frames hidden
TestAccountPages.test_signupft/tests.py:156 response = self.client.get(reverse("account_signup"))13 ms4.7%
Client.getdjango/test/client.py:112413 ms4.7%
RequestFactory.getdjango/test/client.py:47513 ms4.7%
RequestFactory.genericdjango/test/client.py:67113 ms4.7%
Client.requestdjango/test/client.py:108213 ms4.7%
ClientHandler.__call__django/test/client.py:1737 ms2.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:627 ms2.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1047 ms2.6%
WhiteNoise.add_fileswhitenoise/base.py:1087 ms2.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms1.3%
scantreewhitenoise/base.py:2623 ms1.3%
scantreewhitenoise/base.py:2623 ms1.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1203 ms1.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1313 ms1.3%
WhiteNoise.get_static_filewhitenoise/base.py:2082 ms0.9%
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:1866 ms2.1%
BaseHandler.get_responsedjango/core/handlers/base.py:1416 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.1%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1306 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.1%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1236 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.1%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:346 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms2.1%
BaseHandler._get_responsedjango/core/handlers/base.py:2215 ms1.7%
SimpleTemplateResponse.renderdjango/template/response.py:1145 ms1.7%
SimpleTemplateResponse.rendered_contentdjango/template/response.py:925 ms1.7%
Template.renderdjango/template/backends/django.py:1075 ms1.7%
Template.renderdjango/template/base.py:1745 ms1.7%
instrumented_test_renderdjango/test/utils.py:1145 ms1.7%
NodeList.renderdjango/template/base.py:10915 ms1.7%
Node.render_annotateddjango/template/base.py:10525 ms1.7%
ExtendsNode.renderdjango/template/loader_tags.py:1605 ms1.7%
instrumented_test_renderdjango/test/utils.py:1145 ms1.7%
NodeList.renderdjango/template/base.py:10915 ms1.7%
Node.render_annotateddjango/template/base.py:10525 ms1.7%
ExtendsNode.renderdjango/template/loader_tags.py:1605 ms1.7%
instrumented_test_renderdjango/test/utils.py:1145 ms1.7%
NodeList.renderdjango/template/base.py:10915 ms1.7%
Node.render_annotateddjango/template/base.py:10525 ms1.7%
ExtendsNode.renderdjango/template/loader_tags.py:1605 ms1.7%
instrumented_test_renderdjango/test/utils.py:1145 ms1.7%
NodeList.renderdjango/template/base.py:10915 ms1.7%
Node.render_annotateddjango/template/base.py:10525 ms1.7%
BlockNode.renderdjango/template/loader_tags.py:665 ms1.7%
NodeList.renderdjango/template/base.py:10915 ms1.7%
Node.render_annotateddjango/template/base.py:10525 ms1.7%
BlockNode.renderdjango/template/loader_tags.py:665 ms1.7%
NodeList.renderdjango/template/base.py:10915 ms1.7%
Node.render_annotateddjango/template/base.py:10525 ms1.7%
BlockNode.renderdjango/template/loader_tags.py:665 ms1.7%
NodeList.renderdjango/template/base.py:10915 ms1.7%
Node.render_annotateddjango/template/base.py:10525 ms1.7%
VariableNode.renderdjango/template/base.py:11505 ms1.7%
FilterExpression.resolvedjango/template/base.py:7885 ms1.7%
Variable.resolvedjango/template/base.py:9285 ms1.7%
Variable._resolve_lookupdjango/template/base.py:10005 ms1.7%
RenderableFieldMixin.as_field_groupdjango/forms/utils.py:635 ms1.7%
RenderableMixin.renderdjango/forms/utils.py:555 ms1.7%
BaseRenderer.renderdjango/forms/renderers.py:295 ms1.7%
Template.renderdjango/template/backends/django.py:1075 ms1.7%
Template.renderdjango/template/base.py:1745 ms1.7%
instrumented_test_renderdjango/test/utils.py:1145 ms1.7%
NodeList.renderdjango/template/base.py:10915 ms1.7%
Node.render_annotateddjango/template/base.py:10525 ms1.7%
VariableNode.renderdjango/template/base.py:11565 ms1.7%
render_value_in_contextdjango/template/base.py:11335 ms1.7%
RenderableFieldMixin.__str__django/forms/utils.py:795 ms1.7%
BoundField.as_widgetdjango/forms/boundfield.py:1085 ms1.7%
Widget.renderdjango/forms/widgets.py:3315 ms1.7%
Widget._renderdjango/forms/widgets.py:3365 ms1.7%
BaseRenderer.renderdjango/forms/renderers.py:295 ms1.7%
Template.renderdjango/template/backends/django.py:1075 ms1.7%
Template.renderdjango/template/base.py:1745 ms1.7%
instrumented_test_renderdjango/test/utils.py:1145 ms1.7%
NodeList.renderdjango/template/base.py:10915 ms1.7%
1 smaller frames hidden
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms0.9%
1 smaller frames hidden
Estimated from 234 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

ft/tests.py:159
response = self.client.post(
TestAccountPages.test_signup · Password hashing
250 ms
ft/tests.py:156
response = self.client.get(reverse("account_signup"))
TestAccountPages.test_signup · Libraries
13 ms
apps/orgs/models.py:126
membership = Membership.objects.filter(user=user).select_related("organization").order_by("id").first()
ensure_organization · Database
2 ms
apps/orgs/models.py:46
while slug in reserved or taken.filter(slug=slug).exists():
unique_slug · Database
1 ms
apps/orgs/models.py:130
organization = Organization.objects.create(
ensure_organization · Database
1 ms
ft/tests.py:164
self.assertTrue(User.objects.filter(email="[email protected]").exists())
TestAccountPages.test_signup · Database
1 ms

Fixtures

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

Database

26 queries · 13 ms
No repeated queries.

Biggest pieces of work

call test body
ft/tests.py:159
268 ms
call _post_teardown
django/test/testcases.py:1240
2 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
14 minutes ago CI github-actions:test passed 271 ms 9caa567 main Profile
39 minutes ago CI github-actions:test passed 259 ms ec75501 main Profile
7 hours ago CI github-actions:test passed 325 ms d2c12e5 main Profile
7 hours ago CI github-actions:test passed 183 ms 0b902f6 main Profile
7 hours ago CI github-actions:test passed 342 ms 78a4357 main Profile