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

TestEditStarterPack::test_edit_shows_selected_uncommon_language_expanded

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
182 ms
median 163 ms
max 338 ms
Phases
Setup 38 ms Call 143 ms Teardown 0.75 ms
Categories
Database 80 ms Factories 3 ms Test code 0.08 ms Other (Libraries, Templates, pytest, Deep copies, ...) 99 ms

32 database queries per run

Needs 381 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup32 ms26.7%
TestCase.setUpClassdjango/test/testcases.py:1442 cls.setUpTestData()22 ms18.1%
TestEditStarterPack.setUpTestDatastarter_packs/tests.py:187 baker.make("mastodon_auth.AccountAccess", user=cls.user)9 ms7.8%
makemodel_bakery/baker.py:1759 ms7.8%
Baker.makemodel_bakery/baker.py:4549 ms7.8%
Baker._makemodel_bakery/baker.py:5299 ms7.8%
Baker.generate_valuemodel_bakery/baker.py:10199 ms7.8%
gen_relatedmodel_bakery/random_gen.py:4549 ms7.8%
makemodel_bakery/baker.py:1759 ms7.8%
Baker.makemodel_bakery/baker.py:4549 ms7.8%
Baker._makemodel_bakery/baker.py:5429 ms7.8%
Baker.instancemodel_bakery/baker.py:6599 ms7.8%
Model.savedjango/db/models/base.py:9049 ms7.8%
Model.save_basedjango/db/models/base.py:9969 ms7.8%
Model._save_tabledjango/db/models/base.py:11999 ms7.8%
Model._do_insertdjango/db/models/base.py:12519 ms7.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:879 ms7.8%
QuerySet._insertdjango/db/models/query.py:21419 ms7.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19368 ms6.9%
CursorWrapper.executedjango/db/backends/utils.py:798 ms6.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:928 ms6.9%
CursorWrapper._executedjango/db/backends/utils.py:1058 ms6.9%
Cursor.executepsycopg/cursor.py:1138 ms6.9%
Connection.waitpsycopg/connection.py:4958 ms6.9%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19351 ms0.9%
SQLInsertCompiler.as_sqldjango/db/models/sql/compiler.py:18601 ms0.9%
SQLInsertCompiler.as_sql.<locals>.<genexpr>django/db/models/sql/compiler.py:18601 ms0.9%
SQLCompiler.quote_namedjango/db/models/sql/compiler.py:5581 ms0.9%
DatabaseOperations.quote_namedjango/db/backends/postgresql/operations.py:1901 ms0.9%
TestEditStarterPack.setUpTestDatastarter_packs/tests.py:186 cls.user = baker.make("auth.User")7 ms6.0%
makemodel_bakery/baker.py:1757 ms6.0%
Baker.makemodel_bakery/baker.py:4547 ms6.0%
Baker._makemodel_bakery/baker.py:5427 ms6.0%
Baker.instancemodel_bakery/baker.py:6597 ms6.0%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:627 ms6.0%
Model.savedjango/db/models/base.py:9047 ms6.0%
Model.save_basedjango/db/models/base.py:9967 ms6.0%
Model._save_tabledjango/db/models/base.py:11997 ms6.0%
Model._do_insertdjango/db/models/base.py:12517 ms6.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:877 ms6.0%
QuerySet._insertdjango/db/models/query.py:21417 ms6.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19367 ms6.0%
CursorWrapper.executedjango/db/backends/utils.py:797 ms6.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms6.0%
CursorWrapper._executedjango/db/backends/utils.py:1057 ms6.0%
Cursor.executepsycopg/cursor.py:1137 ms6.0%
Connection.waitpsycopg/connection.py:4957 ms6.0%
TestEditStarterPack.setUpTestDatastarter_packs/tests.py:188 cls.starter_pack = baker.make("starter_packs.StarterPack", created_by=cls.user)4 ms3.4%
makemodel_bakery/baker.py:1754 ms3.4%
Baker.makemodel_bakery/baker.py:4544 ms3.4%
Baker._makemodel_bakery/baker.py:5424 ms3.4%
Baker.instancemodel_bakery/baker.py:6594 ms3.4%
Model.savedjango/db/models/base.py:9044 ms3.4%
Model.save_basedjango/db/models/base.py:9964 ms3.4%
Model._save_tabledjango/db/models/base.py:11994 ms3.4%
Model._do_insertdjango/db/models/base.py:12514 ms3.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms3.4%
QuerySet._insertdjango/db/models/query.py:21414 ms3.4%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19364 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:794 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms2.6%
Cursor.executepsycopg/cursor.py:1133 ms2.6%
Connection.waitpsycopg/connection.py:4953 ms2.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms2.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms2.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms2.6%
TestEditStarterPack.setUpTestDatastarter_packs/tests.py:189 cls.starter_pack.owners.add(cls.user)1 ms0.9%
create_forward_many_to_many_manager.<locals>.ManyRelatedManager.adddjango/db/models/fields/related_descriptors.py:13241 ms0.9%
create_forward_many_to_many_manager.<locals>.ManyRelatedManager._add_basedjango/db/models/fields/related_descriptors.py:13011 ms0.9%
create_forward_many_to_many_manager.<locals>.ManyRelatedManager._add_itemsdjango/db/models/fields/related_descriptors.py:16031 ms0.9%
QuerySet.bulk_createdjango/db/models/query.py:9001 ms0.9%
QuerySet._batched_insertdjango/db/models/query.py:21791 ms0.9%
QuerySet._insertdjango/db/models/query.py:21411 ms0.9%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19361 ms0.9%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.9%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.9%
Cursor.executepsycopg/cursor.py:1131 ms0.9%
Connection.waitpsycopg/connection.py:4951 ms0.9%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()10 ms8.6%
TestCase._enter_atomicsdjango/test/testcases.py:139910 ms8.6%
Atomic.__enter__django/db/transaction.py:21010 ms8.6%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45410 ms8.6%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30410 ms8.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms8.6%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2798 ms6.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms6.9%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2568 ms6.9%
DatabaseWrapper.get_new_connectionfedidevs/db/postgresql/base.py:39 return super().get_new_connection(conn_params)8 ms6.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms6.9%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3458 ms6.9%
Connection.connectpsycopg/connection.py:1098 ms6.9%
wait_connpsycopg/waiting.py:1456 ms5.2%
BaseConnection._connect_genpsycopg/_connection_base.py:4396 ms5.2%
wait_connpsycopg/waiting.py:1412 ms1.7%
EpollSelector.select<stdlib>/selectors.py:4522 ms1.7%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2782 ms1.7%
call88 ms73.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()55 ms45.8%
TestCase._fixture_teardowndjango/test/testcases.py:149854 ms44.7%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:49654 ms44.7%
CursorWrapper.executedjango/db/backends/utils.py:7954 ms44.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9254 ms44.7%
CursorWrapper._executedjango/db/backends/utils.py:10354 ms44.7%
Cursor.executepsycopg/cursor.py:11354 ms44.7%
Connection.waitpsycopg/connection.py:49554 ms44.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.1%
TestCase._fixture_teardowndjango/test/testcases.py:15001 ms1.1%
TestCase._rollback_atomicsdjango/test/testcases.py:14081 ms1.1%
Atomic.__exit__django/db/transaction.py:2981 ms1.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.1%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms1.1%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.1%
Cursor.executepsycopg/cursor.py:1131 ms1.1%
Connection.waitpsycopg/connection.py:4951 ms1.1%
TestEditStarterPack.test_edit_shows_selected_uncommon_language_expandedstarter_packs/tests.py:228 self.client.force_login(self.user)20 ms16.4%
ClientMixin.force_logindjango/test/client.py:85820 ms16.4%
ClientMixin._logindjango/test/client.py:8899 ms7.6%
logindjango/contrib/auth/__init__.py:1897 ms5.5%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4374 ms3.3%
SessionStore.createdjango/contrib/sessions/backends/db.py:703 ms2.2%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2013 ms2.2%
SessionStore.existsdjango/contrib/sessions/backends/db.py:633 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.1%
QuerySet.filterdjango/db/models/query.py:16761 ms1.1%
QuerySet._filter_or_excludedjango/db/models/query.py:16941 ms1.1%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17041 ms1.1%
Query.add_qdjango/db/models/sql/query.py:16811 ms1.1%
Query._add_qdjango/db/models/sql/query.py:17131 ms1.1%
Query.build_filterdjango/db/models/sql/query.py:15771 ms1.1%
QuerySet.existsdjango/db/models/query.py:14581 ms1.1%
Query.has_resultsdjango/db/models/sql/query.py:6871 ms1.1%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15931 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16441 ms1.1%
DatabaseErrorWrapper.__call__.<locals>.innerdjango/db/utils.py:1001 ms1.1%
DatabaseErrorWrapper.__exit__django/db/utils.py:741 ms1.1%
SessionStore.createdjango/contrib/sessions/backends/db.py:741 ms1.1%
SessionStore.savedjango/contrib/sessions/backends/db.py:1261 ms1.1%
Atomic.__exit__django/db/transaction.py:2591 ms1.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.1%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms1.1%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.1%
Cursor.executepsycopg/cursor.py:1131 ms1.1%
Connection.waitpsycopg/connection.py:4951 ms1.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.1%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4403 ms2.2%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1753 ms2.2%
Model.deletedjango/db/models/base.py:13313 ms2.2%
Collector.deletedjango/db/models/deletion.py:4833 ms2.2%
DeleteQuery.delete_batchdjango/db/models/sql/subqueries.py:433 ms2.2%
DeleteQuery.do_querydjango/db/models/sql/subqueries.py:253 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:793 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms2.2%
Cursor.executepsycopg/cursor.py:1133 ms2.2%
Connection.waitpsycopg/connection.py:4953 ms2.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms2.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms2.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms2.2%
logindjango/contrib/auth/__init__.py:1771 ms1.1%
SessionBase.__contains__django/contrib/sessions/backends/base.py:521 ms1.1%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2541 ms1.1%
SessionStore.loaddjango/contrib/sessions/backends/db.py:551 ms1.1%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:341 ms1.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.1%
QuerySet.getdjango/db/models/query.py:7021 ms1.1%
QuerySet.__len__django/db/models/query.py:4211 ms1.1%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms1.1%
ModelIterable.__iter__django/db/models/query.py:1031 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.1%
Cursor.executepsycopg/cursor.py:1131 ms1.1%
Connection.waitpsycopg/connection.py:4951 ms1.1%
logindjango/contrib/auth/__init__.py:1981 ms1.1%
Signal.senddjango/dispatch/dispatcher.py:2491 ms1.1%
update_last_logindjango/contrib/auth/models.py:241 ms1.1%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:621 ms1.1%
Model.savedjango/db/models/base.py:9041 ms1.1%
Model.save_basedjango/db/models/base.py:9961 ms1.1%
Model._save_tabledjango/db/models/base.py:11401 ms1.1%
Model._do_updatedjango/db/models/base.py:12441 ms1.1%
QuerySet._updatedjango/db/models/query.py:14481 ms1.1%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21501 ms1.1%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21211 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.1%
Cursor.executepsycopg/cursor.py:1131 ms1.1%
Connection.waitpsycopg/connection.py:4951 ms1.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.1%
ClientMixin._logindjango/test/client.py:8847 ms5.5%
ClientMixin.sessiondjango/test/client.py:8157 ms5.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1217 ms5.5%
SessionStore.createdjango/contrib/sessions/backends/db.py:707 ms5.5%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2017 ms5.5%
SessionStore.existsdjango/contrib/sessions/backends/db.py:637 ms5.5%
QuerySet.existsdjango/db/models/query.py:14587 ms5.5%
Query.has_resultsdjango/db/models/sql/query.py:6875 ms4.4%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15935 ms4.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16255 ms4.4%
CursorWrapper.executedjango/db/backends/utils.py:795 ms4.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms4.4%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms4.4%
Cursor.executepsycopg/cursor.py:1135 ms4.4%
Connection.waitpsycopg/connection.py:4955 ms4.4%
Query.has_resultsdjango/db/models/sql/query.py:6861 ms1.1%
Query.get_compilerdjango/db/models/sql/query.py:3741 ms1.1%
BaseConnectionHandler.__getitem__django/utils/connection.py:581 ms1.1%
Local.__getattr__asgiref/local.py:1571 ms1.1%
contextmanager.<locals>.helper<stdlib>/contextlib.py:3671 ms1.1%
_GeneratorContextManagerBase.__init__<stdlib>/contextlib.py:1771 ms1.1%
ClientMixin._logindjango/test/client.py:8914 ms3.3%
SessionStore.savedjango/contrib/sessions/backends/db.py:1273 ms2.2%
Model.savedjango/db/models/base.py:9043 ms2.2%
Model.save_basedjango/db/models/base.py:9963 ms2.2%
Model._save_tabledjango/db/models/base.py:11403 ms2.2%
Model._do_updatedjango/db/models/base.py:12443 ms2.2%
QuerySet._updatedjango/db/models/query.py:14483 ms2.2%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21503 ms2.2%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21213 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16231 ms1.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.1%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3201 ms1.1%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2981 ms1.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.1%
DatabaseWrapper.create_cursordjango/db/backends/postgresql/base.py:4421 ms1.1%
Connection.cursorpsycopg/connection.py:2441 ms1.1%
BaseConnection._check_connection_okpsycopg/_connection_base.py:5351 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.1%
Cursor.executepsycopg/cursor.py:1131 ms1.1%
Connection.waitpsycopg/connection.py:4951 ms1.1%
SessionStore.savedjango/contrib/sessions/backends/db.py:1261 ms1.1%
Atomic.__exit__django/db/transaction.py:2591 ms1.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.1%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms1.1%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.1%
Cursor.executepsycopg/cursor.py:1131 ms1.1%
Connection.waitpsycopg/connection.py:4951 ms1.1%
TestEditStarterPack.test_edit_shows_selected_uncommon_language_expandedstarter_packs/tests.py:229 response = self.client.get(reverse("edit_starter_pack", args=[self.starter_pack.slug]))7 ms5.5%
Client.getdjango/test/client.py:11337 ms5.5%
RequestFactory.getdjango/test/client.py:4755 ms4.4%
RequestFactory.genericdjango/test/client.py:6715 ms4.4%
Client.requestdjango/test/client.py:10915 ms4.4%
ClientHandler.__call__django/test/client.py:1735 ms4.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:635 ms4.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1045 ms4.4%
WhiteNoise.add_fileswhitenoise/base.py:1085 ms4.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms3.3%
scantreewhitenoise/base.py:2713 ms2.2%
scantreewhitenoise/base.py:2731 ms1.1%
scantreewhitenoise/base.py:2711 ms1.1%
scantreewhitenoise/base.py:2731 ms1.1%
<GC>~1 ms1.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1201 ms1.1%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1311 ms1.1%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()3 ms2.2%
TestCase._fixture_setupdjango/test/testcases.py:14813 ms2.2%
TestCase._enter_atomicsdjango/test/testcases.py:13993 ms2.2%
Atomic.__enter__django/db/transaction.py:2233 ms2.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms2.2%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4003 ms2.2%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3673 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:793 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms2.2%
Cursor.executepsycopg/cursor.py:1133 ms2.2%
Connection.waitpsycopg/connection.py:4953 ms2.2%
TestEditStarterPack.test_edit_shows_selected_uncommon_language_expandedstarter_packs/tests.py:227 self.starter_pack.save(update_fields=["languages"])3 ms2.2%
Model.savedjango/db/models/base.py:9043 ms2.2%
Model.save_basedjango/db/models/base.py:9963 ms2.2%
Model._save_tabledjango/db/models/base.py:11403 ms2.2%
Model._do_updatedjango/db/models/base.py:12443 ms2.2%
QuerySet._updatedjango/db/models/query.py:14483 ms2.2%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21503 ms2.2%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21213 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:793 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms2.2%
Cursor.executepsycopg/cursor.py:1133 ms2.2%
Connection.waitpsycopg/connection.py:4953 ms2.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms2.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms2.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms2.2%
Estimated from 98 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:228
self.client.force_login(self.user)
TestEditStarterPack.test_edit_shows_selected_uncommon_language_expanded · Database
20 ms
starter_packs/tests.py:187
baker.make("mastodon_auth.AccountAccess", user=cls.user)
TestEditStarterPack.setUpTestData · Database
9 ms
fedidevs/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection · Database
8 ms
starter_packs/tests.py:186
cls.user = baker.make("auth.User")
TestEditStarterPack.setUpTestData · Database
7 ms
starter_packs/tests.py:229
response = self.client.get(reverse("edit_starter_pack", args=[self.starter_pack.slug]))
TestEditStarterPack.test_edit_shows_selected_uncommon_language_expanded · Libraries
7 ms
starter_packs/tests.py:188
cls.starter_pack = baker.make("starter_packs.StarterPack", created_by=cls.user)
TestEditStarterPack.setUpTestData · Database
4 ms
starter_packs/tests.py:227
self.starter_pack.save(update_fields=["languages"])
TestEditStarterPack.test_edit_shows_selected_uncommon_language_expanded · Database
3 ms
starter_packs/tests.py:189
cls.starter_pack.owners.add(cls.user)
TestEditStarterPack.setUpTestData · Database
1 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestEditStarterPack class 31 ms
_django_setup_unittest class 0.23 ms
_dj_autoclear_mailbox function 0.12 ms
_django_db_marker function 0.04 ms
_template_string_if_invalid_marker function 0.04 ms
_django_isolate_apps function 0.03 ms
_live_server_helper function 0.03 ms
_django_clear_site_cache function 0.03 ms
_django_set_urlconf function 0.03 ms
monkeypatch function 0.02 ms

Database

32 queries · 50 ms
No repeated queries.

Biggest pieces of work

call _post_teardown
django/test/testcases.py:1243
55 ms
setup setUpClass
django/test/testcases.py:1442
32 ms
call test body
starter_packs/tests.py:228
29 ms
call _pre_setup
django/test/testcases.py:1167
3 ms
call pytest internals 1 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 121 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 163 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 186 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 92 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 169 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 196 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 139 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 163 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 130 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 108 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 264 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 338 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 302 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 100 ms 0c23747 main Run