flakytest.dev anze3db fedidevs
Tests / confs/tests.py

TestCreateConference::test_mastodon_url_is_kept

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
772 ms
median 601 ms
max 1.63 s
Phases
Setup 2 ms Call 770 ms Teardown 0.35 ms
Categories
Password hashing 552 ms Database 37 ms App code 0.09 ms Other (Libraries, Unsampled, Deep copies, pytest, ...) 183 ms

27 database queries per run

Needs 99 KB of memory (max 372 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call480 ms99.8%
TestCreateConference.setUpconfs/tests.py:1044 self.user = User.objects.create_user("alice", password="pw")436 ms90.7%
UserManager.create_userdjango/contrib/auth/models.py:180436 ms90.7%
UserManager._create_userdjango/contrib/auth/models.py:167434 ms90.2%
UserManager._create_user_objectdjango/contrib/auth/models.py:160434 ms90.2%
make_passworddjango/contrib/auth/hashers.py:118434 ms90.2%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333434 ms90.2%
pbkdf2django/utils/crypto.py:93434 ms90.2%
1 smaller frames hidden
TestCreateConference.test_mastodon_url_is_keptconfs/tests.py:1132 self.client.post(reverse("create_conference"), data)32 ms6.7%
Client.postdjango/test/client.py:116232 ms6.7%
RequestFactory.postdjango/test/client.py:49932 ms6.7%
RequestFactory.genericdjango/test/client.py:67132 ms6.7%
Client.requestdjango/test/client.py:109132 ms6.7%
ClientHandler.__call__django/test/client.py:17322 ms4.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6322 ms4.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10422 ms4.6%
WhiteNoise.add_fileswhitenoise/base.py:10822 ms4.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12016 ms3.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13116 ms3.3%
WhiteNoise.get_static_filewhitenoise/base.py:2179 ms1.9%
StaticFile.__init__whitenoise/responders.py:775 ms1.0%
StaticFile.get_alternativeswhitenoise/responders.py:2005 ms1.0%
__init____init__:-15 ms1.0%
Headers.__init__<stdlib>/wsgiref/headers.py:444 ms0.8%
1 smaller frames hidden
2 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:2126 ms1.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:2335 ms1.0%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1763 ms0.6%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1973 ms0.6%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms0.6%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2353 ms0.6%
2 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms1.2%
scantreewhitenoise/base.py:2714 ms0.8%
scantreewhitenoise/base.py:2713 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:18610 ms2.1%
BaseHandler.get_responsedjango/core/handlers/base.py:14210 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.1%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12310 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.1%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14510 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms2.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms1.9%
BaseHandler._get_responsedjango/core/handlers/base.py:1999 ms1.9%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:629 ms1.9%
create_conferenceconfs/views.py:498 form.save_m2m() # persist the selected conference_tags (icons)9 ms1.9%
BaseModelForm._save_m2mdjango/forms/models.py:5569 ms1.9%
ManyToManyField.save_form_datadjango/db/models/fields/related.py:21339 ms1.9%
create_forward_many_to_many_manager.<locals>.ManyRelatedManager.setdjango/db/models/fields/related_descriptors.py:14309 ms1.9%
create_forward_many_to_many_manager.<locals>.ManyRelatedManager.set_basedjango/db/models/fields/related_descriptors.py:14069 ms1.9%
QuerySet.__iter__django/db/models/query.py:4399 ms1.9%
QuerySet._fetch_alldjango/db/models/query.py:22629 ms1.9%
FlatValuesListIterable.__iter__django/db/models/query.py:3029 ms1.9%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15749 ms1.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16259 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:799 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:929 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1059 ms1.9%
Cursor.executepsycopg/cursor.py:1139 ms1.9%
Connection.waitpsycopg/connection.py:4959 ms1.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2068 ms1.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2868 ms1.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:788 ms1.7%
1 smaller frames hidden
TestCreateConference.test_mastodon_url_is_keptconfs/tests.py:1126 self.client.force_login(self.user)9 ms1.9%
ClientMixin.force_logindjango/test/client.py:8589 ms1.9%
ClientMixin._logindjango/test/client.py:8895 ms1.0%
logindjango/contrib/auth/__init__.py:1894 ms0.8%
1 smaller frames hidden
ClientMixin._logindjango/test/client.py:8843 ms0.6%
ClientMixin.sessiondjango/test/client.py:8153 ms0.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1213 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
Estimated from 480 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

confs/tests.py:1044
self.user = User.objects.create_user("alice", password="pw")
TestCreateConference.setUp · Password hashing
436 ms
confs/tests.py:1132
self.client.post(reverse("create_conference"), data)
TestCreateConference.test_mastodon_url_is_kept · Libraries
23 ms
confs/tests.py:1126
self.client.force_login(self.user)
TestCreateConference.test_mastodon_url_is_kept · Database
9 ms
confs/views.py:498
form.save_m2m() # persist the selected conference_tags (icons)
create_conference · Database
9 ms
confs/tests.py:1129
mock.patch("confs.views.send_mail"),
TestCreateConference.test_mastodon_url_is_kept · Mocking
1 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.04 ms
_template_string_if_invalid_marker function 0.03 ms
_django_db_marker function 0.03 ms
_django_isolate_apps function 0.03 ms
_live_server_helper function 0.03 ms
_django_set_urlconf function 0.02 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

27 queries · 9 ms
No repeated queries.

Biggest pieces of work

call setUp
confs/tests.py:1044
436 ms
call test body
confs/tests.py:1132
42 ms
call pytest internals 2 ms

Reliability

14 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 14 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 481 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 528 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 607 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 315 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 645 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 527 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 476 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 865 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 538 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 601 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 1.20 s 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 1.63 s 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 1.63 s ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 680 ms 0c23747 main Run