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

TestCreateStarterPack::test_create_starter_pack_with_languages

First seen 13 hours ago in 0c23747
CI github-actions:test 4 runs
Average
200 ms
median 215 ms
max 308 ms
Phases
Setup 2 ms Call 198 ms Teardown 0.31 ms
Categories
Database 55 ms Other (Libraries, pytest, Unsampled, Deep copies) 146 ms

29 database queries per run

Needs 570 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 8 hours ago · open run
Show pytest frames
setup0.72 ms1.1%
call62 ms98.4%
TestCreateStarterPack.test_create_starter_pack_with_languagesstarter_packs/tests.py:132 self.client.post(46 ms73.0%
Client.postdjango/test/client.py:116246 ms73.0%
RequestFactory.postdjango/test/client.py:49946 ms73.0%
RequestFactory.genericdjango/test/client.py:67146 ms73.0%
Client.requestdjango/test/client.py:109146 ms73.0%
ClientHandler.__call__django/test/client.py:17324 ms38.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6324 ms38.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10424 ms38.1%
WhiteNoise.add_fileswhitenoise/base.py:10824 ms38.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12018 ms28.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13118 ms28.6%
WhiteNoise.get_static_filewhitenoise/base.py:21714 ms22.2%
StaticFile.__init__whitenoise/responders.py:724 ms6.3%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms3.2%
__init____init__:-12 ms3.2%
FileEntry.__init__whitenoise/responders.py:2632 ms3.2%
FileEntry.stat_regular_filewhitenoise/responders.py:2762 ms3.2%
<GC>~2 ms3.2%
StaticFile.get_file_statswhitenoise/responders.py:1632 ms3.2%
StaticFile.__init__whitenoise/responders.py:774 ms6.3%
StaticFile.get_alternativeswhitenoise/responders.py:1982 ms3.2%
StaticFile.get_alternativeswhitenoise/responders.py:2012 ms3.2%
StaticFile.__init__whitenoise/responders.py:732 ms3.2%
StaticFile.get_headerswhitenoise/responders.py:1762 ms3.2%
WhiteNoise.get_static_filewhitenoise/base.py:2122 ms3.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms9.5%
scantreewhitenoise/base.py:2716 ms9.5%
scantreewhitenoise/base.py:2714 ms6.3%
scantreewhitenoise/base.py:2714 ms6.3%
scantreewhitenoise/base.py:2714 ms6.3%
scantreewhitenoise/base.py:2714 ms6.3%
scantreewhitenoise/base.py:2732 ms3.2%
scantreewhitenoise/base.py:2692 ms3.2%
scantreewhitenoise/base.py:2732 ms3.2%
ClientHandler.__call__django/test/client.py:18622 ms34.9%
BaseHandler.get_responsedjango/core/handlers/base.py:14222 ms34.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms34.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms34.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms34.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms34.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms34.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms34.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms34.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12322 ms34.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms34.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14522 ms34.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms34.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms34.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms34.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms34.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms34.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms34.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms34.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms34.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms34.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms34.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms34.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms34.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms34.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms34.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms34.9%
BaseHandler._get_responsedjango/core/handlers/base.py:19922 ms34.9%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:6218 ms28.6%
create_starter_packstarter_packs/views.py:55612 ms19.0%
get_splash_image_signaturestarter_packs/splash_images.py:8812 ms19.0%
get_splash_image_accountsstarter_packs/splash_images.py:77 return list(accounts)10 ms15.9%
QuerySet.__iter__django/db/models/query.py:43910 ms15.9%
QuerySet._fetch_alldjango/db/models/query.py:226210 ms15.9%
ModelIterable.__iter__django/db/models/query.py:10310 ms15.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162510 ms15.9%
CursorWrapper.executedjango/db/backends/utils.py:7910 ms15.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9210 ms15.9%
CursorWrapper._executedjango/db/backends/utils.py:10510 ms15.9%
Cursor.executepsycopg/cursor.py:11310 ms15.9%
Connection.waitpsycopg/connection.py:49510 ms15.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.2%
get_splash_image_accountsstarter_packs/splash_images.py:68 Account.objects.filter(2 ms3.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.2%
QuerySet.filterdjango/db/models/query.py:16762 ms3.2%
QuerySet._filter_or_excludedjango/db/models/query.py:16942 ms3.2%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17042 ms3.2%
Query.add_qdjango/db/models/sql/query.py:16812 ms3.2%
Query._add_qdjango/db/models/sql/query.py:17132 ms3.2%
Query.build_filterdjango/db/models/sql/query.py:15512 ms3.2%
create_starter_packstarter_packs/views.py:552 starter_pack.save()2 ms3.2%
Model.savedjango/db/models/base.py:9042 ms3.2%
Model.save_basedjango/db/models/base.py:9962 ms3.2%
Model._save_tabledjango/db/models/base.py:11992 ms3.2%
Model._do_insertdjango/db/models/base.py:12512 ms3.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.2%
QuerySet._insertdjango/db/models/query.py:21412 ms3.2%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19362 ms3.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.2%
create_starter_packstarter_packs/views.py:553 starter_pack.owners.add(request.user)2 ms3.2%
create_forward_many_to_many_manager.<locals>.ManyRelatedManager.adddjango/db/models/fields/related_descriptors.py:13242 ms3.2%
create_forward_many_to_many_manager.<locals>.ManyRelatedManager._add_basedjango/db/models/fields/related_descriptors.py:13012 ms3.2%
create_forward_many_to_many_manager.<locals>.ManyRelatedManager._add_itemsdjango/db/models/fields/related_descriptors.py:16032 ms3.2%
QuerySet.bulk_createdjango/db/models/query.py:9002 ms3.2%
QuerySet._batched_insertdjango/db/models/query.py:21792 ms3.2%
QuerySet._insertdjango/db/models/query.py:21412 ms3.2%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19362 ms3.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.2%
Cursor.executepsycopg/cursor.py:1132 ms3.2%
Connection.waitpsycopg/connection.py:4952 ms3.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.2%
create_starter_packstarter_packs/views.py:563 starter_pack.save()2 ms3.2%
Model.savedjango/db/models/base.py:9042 ms3.2%
Model.save_basedjango/db/models/base.py:9962 ms3.2%
Model._save_tabledjango/db/models/base.py:11402 ms3.2%
Model._do_updatedjango/db/models/base.py:12442 ms3.2%
QuerySet._updatedjango/db/models/query.py:14482 ms3.2%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21502 ms3.2%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21212 ms3.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms3.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.2%
Cursor.executepsycopg/cursor.py:1132 ms3.2%
Connection.waitpsycopg/connection.py:4952 ms3.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.2%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:594 ms6.3%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:824 ms6.3%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2514 ms6.3%
SimpleLazyObject._setupdjango/utils/functional.py:4044 ms6.3%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:394 ms6.3%
get_userdjango/contrib/auth/middleware.py:194 ms6.3%
get_userdjango/contrib/auth/__init__.py:2874 ms6.3%
_get_user_session_keydjango/contrib/auth/__init__.py:1114 ms6.3%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:554 ms6.3%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2544 ms6.3%
SessionStore.loaddjango/contrib/sessions/backends/db.py:554 ms6.3%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:344 ms6.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms6.3%
QuerySet.getdjango/db/models/query.py:7024 ms6.3%
QuerySet.__len__django/db/models/query.py:4214 ms6.3%
QuerySet._fetch_alldjango/db/models/query.py:22624 ms6.3%
ModelIterable.__iter__django/db/models/query.py:1034 ms6.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16254 ms6.3%
CursorWrapper.executedjango/db/backends/utils.py:794 ms6.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms6.3%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms6.3%
Cursor.executepsycopg/cursor.py:1134 ms6.3%
Connection.waitpsycopg/connection.py:4954 ms6.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms6.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms6.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms6.3%
TestCreateStarterPack.test_create_starter_pack_with_languagesstarter_packs/tests.py:131 self.client.force_login(self.user)12 ms19.0%
ClientMixin.force_logindjango/test/client.py:85810 ms15.9%
ClientMixin._logindjango/test/client.py:8898 ms12.7%
logindjango/contrib/auth/__init__.py:1894 ms6.3%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4372 ms3.2%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms3.2%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2012 ms3.2%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms3.2%
QuerySet.existsdjango/db/models/query.py:14582 ms3.2%
Query.has_resultsdjango/db/models/sql/query.py:6872 ms3.2%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15932 ms3.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms3.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.2%
Cursor.executepsycopg/cursor.py:1132 ms3.2%
Connection.waitpsycopg/connection.py:4952 ms3.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.2%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4402 ms3.2%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1752 ms3.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.2%
QuerySet.getdjango/db/models/query.py:6922 ms3.2%
logindjango/contrib/auth/__init__.py:1772 ms3.2%
SessionBase.__contains__django/contrib/sessions/backends/base.py:522 ms3.2%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2542 ms3.2%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms3.2%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms3.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.2%
QuerySet.getdjango/db/models/query.py:6922 ms3.2%
QuerySet.filterdjango/db/models/query.py:16762 ms3.2%
QuerySet._filter_or_excludedjango/db/models/query.py:16942 ms3.2%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17042 ms3.2%
Query.add_qdjango/db/models/sql/query.py:16812 ms3.2%
logindjango/contrib/auth/__init__.py:1972 ms3.2%
rotate_tokendjango/middleware/csrf.py:1222 ms3.2%
ClientMixin._logindjango/test/client.py:8842 ms3.2%
ClientMixin.sessiondjango/test/client.py:8152 ms3.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1212 ms3.2%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms3.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms3.2%
Atomic.__enter__django/db/transaction.py:2232 ms3.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.2%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms3.2%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms3.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.2%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.2%
Cursor.executepsycopg/cursor.py:1132 ms3.2%
Connection.waitpsycopg/connection.py:4952 ms3.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.2%
TestData.__get__django/test/testcases.py:13702 ms3.2%
deepcopy<stdlib>/copy.py:1572 ms3.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()4 ms6.3%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms3.2%
TestCase._should_check_constraintsdjango/test/testcases.py:15062 ms3.2%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5042 ms3.2%
Cursor.executepsycopg/cursor.py:1132 ms3.2%
Connection.waitpsycopg/connection.py:4952 ms3.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.2%
TestCase._fixture_teardowndjango/test/testcases.py:14982 ms3.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4962 ms3.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.2%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.2%
Cursor.executepsycopg/cursor.py:1132 ms3.2%
Connection.waitpsycopg/connection.py:4952 ms3.2%
Estimated from 32 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:132
self.client.post(
TestCreateStarterPack.test_create_starter_pack_with_languages · Libraries
28 ms
starter_packs/tests.py:131
self.client.force_login(self.user)
TestCreateStarterPack.test_create_starter_pack_with_languages · Database
12 ms
starter_packs/splash_images.py:77
return list(accounts)
get_splash_image_accounts · Database
10 ms
starter_packs/views.py:552
starter_pack.save()
create_starter_pack · Database
2 ms
starter_packs/views.py:553
starter_pack.owners.add(request.user)
create_starter_pack · Database
2 ms
starter_packs/splash_images.py:68
Account.objects.filter(
get_splash_image_accounts · Database
2 ms
starter_packs/views.py:563
starter_pack.save()
create_starter_pack · Database
2 ms

Fixtures

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

Database

29 queries · 15 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:132
58 ms
call _post_teardown
django/test/testcases.py:1243
4 ms
setup pytest internals 0.72 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
8 hours ago CI github-actions:test passed 63 ms d923a46 main Profile
8 hours ago CI github-actions:test passed 308 ms 82997f8 main Profile
8 hours ago CI github-actions:test passed 243 ms 623aa3e main Profile
13 hours ago CI github-actions:test passed 188 ms ab6465a main Profile
13 hours ago CI github-actions:test passed 106 ms 0c23747 main Run