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

TestCreateStarterPack::test_create_page_logged_in

First seen 1 year, 11 months ago in 1b5db0c
CI github-actions:test 11 runs
Average
162 ms
median 125 ms
max 314 ms
Phases
Setup 2 ms Call 159 ms Teardown 0.34 ms
Categories
Database 41 ms Test code 0.09 ms Other (Libraries, Templates, pytest, Imports, ...) 121 ms

24 database queries per run

Needs 653 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
call124 ms99.0%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()59 ms46.8%
TestCase._fixture_teardowndjango/test/testcases.py:149843 ms34.3%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:49543 ms34.3%
CursorWrapper.executedjango/db/backends/utils.py:7943 ms34.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9243 ms34.3%
CursorWrapper._executedjango/db/backends/utils.py:10343 ms34.3%
Cursor.executepsycopg/cursor.py:11343 ms34.3%
Connection.waitpsycopg/connection.py:49543 ms34.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:20643 ms34.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28643 ms34.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7843 ms34.3%
TestCase._fixture_teardowndjango/test/testcases.py:149714 ms10.9%
TestCase._should_check_constraintsdjango/test/testcases.py:150614 ms10.9%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:50414 ms10.9%
Cursor.executepsycopg/cursor.py:11314 ms10.9%
Connection.waitpsycopg/connection.py:49514 ms10.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:20614 ms10.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28613 ms10.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7813 ms10.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3120.98 ms0.8%
TestCase._fixture_teardowndjango/test/testcases.py:15002 ms1.6%
TestCase._rollback_atomicsdjango/test/testcases.py:14082 ms1.6%
Atomic.__exit__django/db/transaction.py:2950.98 ms0.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.98 ms0.8%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4130.98 ms0.8%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3710.98 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:790.98 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.98 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1030.98 ms0.8%
Cursor.executepsycopg/cursor.py:1130.98 ms0.8%
Connection.waitpsycopg/connection.py:4950.98 ms0.8%
Atomic.__exit__django/db/transaction.py:2980.98 ms0.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.98 ms0.8%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4310.98 ms0.8%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3750.98 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:790.98 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.98 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1030.98 ms0.8%
Cursor.executepsycopg/cursor.py:1130.98 ms0.8%
Connection.waitpsycopg/connection.py:4950.98 ms0.8%
TestCreateStarterPack.test_create_page_logged_instarter_packs/tests.py:95 self.client.force_login(self.user)41 ms32.7%
ClientMixin.force_logindjango/test/client.py:85841 ms32.7%
ClientMixin._logindjango/test/client.py:88434 ms27.3%
ClientMixin.sessiondjango/test/client.py:81534 ms27.3%
SessionStore.savedjango/contrib/sessions/backends/db.py:12134 ms27.3%
SessionStore.createdjango/contrib/sessions/backends/db.py:7033 ms26.5%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:20133 ms26.5%
SessionStore.existsdjango/contrib/sessions/backends/db.py:6333 ms26.5%
QuerySet.existsdjango/db/models/query.py:145833 ms26.5%
Query.has_resultsdjango/db/models/sql/query.py:68733 ms26.5%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:159333 ms26.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162533 ms26.5%
CursorWrapper.executedjango/db/backends/utils.py:7933 ms26.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9233 ms26.5%
CursorWrapper._executedjango/db/backends/utils.py:10533 ms26.5%
Cursor.executepsycopg/cursor.py:11333 ms26.5%
Connection.waitpsycopg/connection.py:49533 ms26.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:20633 ms26.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28633 ms26.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7833 ms26.5%
SessionStore.createdjango/contrib/sessions/backends/db.py:740.98 ms0.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1260.98 ms0.8%
Atomic.__exit__django/db/transaction.py:2590.98 ms0.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.98 ms0.8%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4310.98 ms0.8%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3750.98 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:790.98 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.98 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1030.98 ms0.8%
Cursor.executepsycopg/cursor.py:1130.98 ms0.8%
Connection.waitpsycopg/connection.py:4950.98 ms0.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.98 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.98 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.98 ms0.8%
ClientMixin._logindjango/test/client.py:8897 ms5.5%
logindjango/contrib/auth/__init__.py:1895 ms3.9%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4375 ms3.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:745 ms3.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms1.6%
Atomic.__enter__django/db/transaction.py:2232 ms1.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.6%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms1.6%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1232 ms1.6%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1020.98 ms0.8%
SessionBase.encodedjango/contrib/sessions/backends/base.py:1290.98 ms0.8%
dumpsdjango/core/signing.py:1910.98 ms0.8%
Signer.__init__django/core/signing.py:2340.98 ms0.8%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1000.98 ms0.8%
Model.__init__django/db/models/base.py:5110.98 ms0.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1270.98 ms0.8%
Model.savedjango/db/models/base.py:9040.98 ms0.8%
Model.save_basedjango/db/models/base.py:9960.98 ms0.8%
Model._save_tabledjango/db/models/base.py:11990.98 ms0.8%
Model._do_insertdjango/db/models/base.py:12510.98 ms0.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:870.98 ms0.8%
QuerySet._insertdjango/db/models/query.py:21410.98 ms0.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19360.98 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:790.98 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.98 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1050.98 ms0.8%
Cursor.executepsycopg/cursor.py:1130.98 ms0.8%
Connection.waitpsycopg/connection.py:4950.98 ms0.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.98 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.98 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.98 ms0.8%
logindjango/contrib/auth/__init__.py:1772 ms1.6%
SessionBase.__contains__django/contrib/sessions/backends/base.py:522 ms1.6%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2542 ms1.6%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms1.6%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.6%
QuerySet.getdjango/db/models/query.py:6920.98 ms0.8%
QuerySet.filterdjango/db/models/query.py:16760.98 ms0.8%
QuerySet._filter_or_excludedjango/db/models/query.py:16940.98 ms0.8%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17040.98 ms0.8%
Query.add_qdjango/db/models/sql/query.py:16810.98 ms0.8%
Query._add_qdjango/db/models/sql/query.py:17130.98 ms0.8%
Query.build_filterdjango/db/models/sql/query.py:15990.98 ms0.8%
Query.trim_joinsdjango/db/models/sql/query.py:20220.98 ms0.8%
QuerySet.getdjango/db/models/query.py:7020.98 ms0.8%
QuerySet.__len__django/db/models/query.py:4210.98 ms0.8%
TestCreateStarterPack.test_create_page_logged_instarter_packs/tests.py:96 response = self.client.get(reverse("create_starter_pack"))15 ms11.7%
Client.getdjango/test/client.py:113315 ms11.7%
RequestFactory.getdjango/test/client.py:47515 ms11.7%
RequestFactory.genericdjango/test/client.py:67115 ms11.7%
Client.requestdjango/test/client.py:109115 ms11.7%
ClientHandler.__call__django/test/client.py:17313 ms10.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6313 ms10.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10413 ms10.1%
WhiteNoise.add_fileswhitenoise/base.py:10813 ms10.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12010 ms7.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13110 ms7.8%
WhiteNoise.get_static_filewhitenoise/base.py:2175 ms3.9%
StaticFile.__init__whitenoise/responders.py:734 ms3.1%
StaticFile.get_headerswhitenoise/responders.py:1763 ms2.3%
formatdate<stdlib>/email/utils.py:2662 ms1.6%
StaticFile.get_headerswhitenoise/responders.py:1670.98 ms0.8%
StaticFile.__init__whitenoise/responders.py:740.98 ms0.8%
Headers.__getitem__<stdlib>/wsgiref/headers.py:830.98 ms0.8%
WhiteNoise.get_static_filewhitenoise/base.py:2124 ms3.1%
WhiteNoise.add_cache_headerswhitenoise/base.py:2334 ms3.1%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1763 ms2.3%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms1.6%
URLMixin.urldebug_toolbar/panels/staticfiles.py:200.98 ms0.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms2.3%
scantreewhitenoise/base.py:2730.98 ms0.8%
ClientHandler.__call__django/test/client.py:1862 ms1.6%
BaseHandler.get_responsedjango/core/handlers/base.py:1422 ms1.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3800.98 ms0.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:560.98 ms0.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3800.98 ms0.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:560.98 ms0.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1230.98 ms0.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:560.98 ms0.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1450.98 ms0.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:560.98 ms0.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3800.98 ms0.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:560.98 ms0.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3800.98 ms0.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:560.98 ms0.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3800.98 ms0.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:560.98 ms0.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3800.98 ms0.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:560.98 ms0.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3800.98 ms0.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:560.98 ms0.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3800.98 ms0.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:560.98 ms0.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3800.98 ms0.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:560.98 ms0.8%
BaseHandler._get_responsedjango/core/handlers/base.py:1990.98 ms0.8%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:620.98 ms0.8%
create_starter_packstarter_packs/views.py:573 return render(0.98 ms0.8%
renderdjango/shortcuts.py:270.98 ms0.8%
render_to_stringdjango/template/loader.py:620.98 ms0.8%
Template.renderdjango/template/backends/django.py:1070.98 ms0.8%
Template.renderdjango/template/base.py:1750.98 ms0.8%
instrumented_test_renderdjango/test/utils.py:1130.98 ms0.8%
NodeList.renderdjango/template/base.py:11080.98 ms0.8%
Node.render_annotateddjango/template/base.py:10690.98 ms0.8%
ExtendsNode.renderdjango/template/loader_tags.py:1600.98 ms0.8%
instrumented_test_renderdjango/test/utils.py:1130.98 ms0.8%
NodeList.renderdjango/template/base.py:11080.98 ms0.8%
Node.render_annotateddjango/template/base.py:10690.98 ms0.8%
IfNode.renderdjango/template/defaulttags.py:3330.98 ms0.8%
NodeList.renderdjango/template/base.py:11080.98 ms0.8%
Node.render_annotateddjango/template/base.py:10690.98 ms0.8%
VariableNode.renderdjango/template/base.py:11670.98 ms0.8%
FilterExpression.resolvedjango/template/base.py:8060.98 ms0.8%
Variable.resolvedjango/template/base.py:9450.98 ms0.8%
Variable._resolve_lookupdjango/template/base.py:9930.98 ms0.8%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2660.98 ms0.8%
FetchOne.fetchdjango/db/models/fetch_modes.py:170.98 ms0.8%
ForwardManyToOneDescriptor.fetch_onedjango/db/models/fields/related_descriptors.py:2790.98 ms0.8%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2310.98 ms0.8%
QuerySet.getdjango/db/models/query.py:7020.98 ms0.8%
QuerySet.__len__django/db/models/query.py:4210.98 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:22620.98 ms0.8%
ModelIterable.__iter__django/db/models/query.py:1030.98 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16250.98 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:790.98 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.98 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1050.98 ms0.8%
Cursor.executepsycopg/cursor.py:1130.98 ms0.8%
Connection.waitpsycopg/connection.py:4950.98 ms0.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3820.98 ms0.8%
CSPMiddleware.process_responsecsp/middleware.py:830.98 ms0.8%
build_policycsp/utils.py:1360.98 ms0.8%
TestCreateStarterPack.test_create_page_logged_instarter_packs/tests.py:98 self.assertContains(response, "Mastodon starter packs")3 ms2.3%
SimpleTestCase.assertContainsdjango/test/testcases.py:6062 ms1.6%
SimpleTestCase._assert_containsdjango/test/testcases.py:5930.98 ms0.8%
SimpleTestCase._assert_containsdjango/test/testcases.py:5850.98 ms0.8%
TestCreateStarterPack.test_create_page_logged_instarter_packs/tests.py:105 self.assertContains(response, "Show more languages")3 ms2.3%
SimpleTestCase.assertContainsdjango/test/testcases.py:6063 ms2.3%
SimpleTestCase._assert_containsdjango/test/testcases.py:5850.98 ms0.8%
SimpleTestCase._assert_containsdjango/test/testcases.py:5930.98 ms0.8%
TestCreateStarterPack.test_create_page_logged_instarter_packs/tests.py:102 self.assertContains(response, "🇰🇪 Swahili")2 ms1.6%
SimpleTestCase.assertContainsdjango/test/testcases.py:6062 ms1.6%
SimpleTestCase._assert_containsdjango/test/testcases.py:5850.98 ms0.8%
SimpleTestCase._assert_containsdjango/test/testcases.py:5930.98 ms0.8%
TestCreateStarterPack.test_create_page_logged_instarter_packs/tests.py:106 self.assertNotContains(response, "language-extra inline-flex")2 ms1.6%
SimpleTestCase.assertNotContainsdjango/test/testcases.py:6382 ms1.6%
SimpleTestCase._assert_containsdjango/test/testcases.py:5850.98 ms0.8%
SimpleTestCase._assert_containsdjango/test/testcases.py:5930.98 ms0.8%
Estimated from 127 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:95
self.client.force_login(self.user)
TestCreateStarterPack.test_create_page_logged_in · Database
41 ms
starter_packs/tests.py:96
response = self.client.get(reverse("create_starter_pack"))
TestCreateStarterPack.test_create_page_logged_in · Libraries
14 ms
starter_packs/tests.py:98
self.assertContains(response, "Mastodon starter packs")
TestCreateStarterPack.test_create_page_logged_in · Libraries
3 ms
starter_packs/tests.py:105
self.assertContains(response, "Show more languages")
TestCreateStarterPack.test_create_page_logged_in · Libraries
3 ms
starter_packs/tests.py:102
self.assertContains(response, "🇰🇪 Swahili")
TestCreateStarterPack.test_create_page_logged_in · Libraries
2 ms
starter_packs/tests.py:106
self.assertNotContains(response, "language-extra inline-flex")
TestCreateStarterPack.test_create_page_logged_in · Libraries
2 ms
starter_packs/views.py:573
return render(
create_starter_pack · Database
0.98 ms

Fixtures

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

Database

24 queries · 16 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:95
65 ms
call _post_teardown
django/test/testcases.py:1243
59 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 125 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 63 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 206 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 182 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 104 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 114 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 99 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 71 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 298 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 314 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 202 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 113 ms 0c23747 main Run