Tests / apps/projects/tests.py
ProjectTestsPage::test_not_logged_in
First seen 2 years, 9 months ago in d87c7a8
CI
github-actions:test
5 runs
Average
65 ms
median 69 ms
max 78 ms
max 78 ms
Phases
Setup 21 ms
Call 44 ms
Teardown 0.17 ms
Categories
Database 36 ms
App code 0.48 ms
Other (Libraries, pytest, Unsampled) 28 ms
37 database queries per run
Needs 915 KB of memory (max 936 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 24 minutes ago ·
open run
setup20 ms28.9%
CallInfo.from_call_pytest/runner.py:35320 ms28.9%
call_and_report.<locals>.<lambda>_pytest/runner.py:24520 ms28.9%
HookCaller.__call__pluggy/_hooks.py:51220 ms28.9%
PluginManager._hookexecpluggy/_manager.py:12020 ms28.9%
_multicallpluggy/_callers.py:12120 ms28.9%
pytest_runtest_setup_pytest/runner.py:16520 ms28.9%
SetupState.setup_pytest/runner.py:52320 ms28.9%
TestCaseFunction.setup_pytest/unittest.py:22720 ms28.9%
Function.setup_pytest/python.py:172320 ms28.9%
TopRequest._fillfixtures_pytest/fixtures.py:70720 ms28.9%
FixtureRequest.getfixturevalue_pytest/fixtures.py:53920 ms28.9%
FixtureRequest._get_active_fixturedef_pytest/fixtures.py:62720 ms28.9%
FixtureDef.execute_pytest/fixtures.py:111020 ms28.9%
HookCaller.__call__pluggy/_hooks.py:51220 ms28.9%
PluginManager._hookexecpluggy/_manager.py:12020 ms28.9%
_multicallpluggy/_callers.py:12120 ms28.9%
pytest_fixture_setup_pytest/fixtures.py:120220 ms28.9%
call_fixture_func_pytest/fixtures.py:90820 ms28.9%
UnitTestCase._register_unittest_setup_class_fixture.<locals>.unittest_setup_class_fixture_pytest/unittest.py:15420 ms28.9%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()13 ms18.6%
TestCase._enter_atomicsdjango/test/testcases.py:139613 ms18.6%
Atomic.__enter__django/db/transaction.py:19813 ms18.6%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45413 ms18.6%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30313 ms18.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2613 ms18.6%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27913 ms18.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2613 ms18.6%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25611 ms16.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms16.5%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:33311 ms16.5%
Connection.connectpsycopg/connection.py:10910 ms14.5%
wait_connpsycopg/waiting.py:1416 ms8.3%
EpollSelector.select<stdlib>/selectors.py:4526 ms8.3%
wait_connpsycopg/waiting.py:1454 ms6.2%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms6.2%
Connection.connectpsycopg/connection.py:1001 ms2.1%
conninfo_attemptspsycopg/_conninfo_attempts.py:451 ms2.1%
_resolve_hostnamespsycopg/_conninfo_attempts.py:1021 ms2.1%
getaddrinfo<stdlib>/socket.py:9981 ms2.1%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2581 ms2.1%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4021 ms2.1%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3741 ms2.1%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3571 ms2.1%
Cursor.executepsycopg/cursor.py:1131 ms2.1%
Connection.waitpsycopg/connection.py:4951 ms2.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms2.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms2.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms2.1%
TestCase.setUpClassdjango/test/testcases.py:1439 cls.setUpTestData()7 ms10.3%
ProjectTestsPage.setUpTestDataapps/projects/tests.py:3333 ms4.1%
add_memberapps/projects/testing.py:76 membership, _ = Membership.objects.get_or_create(3 ms4.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms4.1%
QuerySet.get_or_createdjango/db/models/query.py:9871 ms2.1%
QuerySet.getdjango/db/models/query.py:6271 ms2.1%
QuerySet.get_or_createdjango/db/models/query.py:9921 ms2.1%
Atomic.__enter__django/db/transaction.py:2111 ms2.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms2.1%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4001 ms2.1%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3671 ms2.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms2.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms2.1%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1001 ms2.1%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms2.1%
Cursor.executepsycopg/cursor.py:1131 ms2.1%
Connection.waitpsycopg/connection.py:4951 ms2.1%
ProjectTestsPage.setUpTestDataapps/projects/tests.py:331 cls.user = User.objects.create_user("testuser")1 ms2.1%
UserManager.create_userdjango/contrib/auth/models.py:1751 ms2.1%
UserManager._create_userdjango/contrib/auth/models.py:1631 ms2.1%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:621 ms2.1%
Model.savedjango/db/models/base.py:8741 ms2.1%
Model.save_basedjango/db/models/base.py:9661 ms2.1%
Model._save_tabledjango/db/models/base.py:11671 ms2.1%
Model._do_insertdjango/db/models/base.py:12181 ms2.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms2.1%
QuerySet._insertdjango/db/models/query.py:19181 ms2.1%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19251 ms2.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms2.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms2.1%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1001 ms2.1%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms2.1%
Cursor.executepsycopg/cursor.py:1131 ms2.1%
Connection.waitpsycopg/connection.py:4951 ms2.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2051 ms2.1%
BaseCursor._convert_querypsycopg/_cursor_base.py:4651 ms2.1%
PostgresClientQuery.convertpsycopg/_queries.py:2891 ms2.1%
PostgresClientQuery.dumppsycopg/_queries.py:2991 ms2.1%
ProjectTestsPage.setUpTestDataapps/projects/tests.py:3321 ms2.1%
make_projectapps/projects/testing.py:621 ms2.1%
unique_slugapps/orgs/models.py:46 while slug in reserved or taken.filter(slug=slug).exists():1 ms2.1%
QuerySet.existsdjango/db/models/query.py:13371 ms2.1%
Query.has_resultsdjango/db/models/sql/query.py:6811 ms2.1%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15921 ms2.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms2.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms2.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms2.1%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1001 ms2.1%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms2.1%
Cursor.executepsycopg/cursor.py:1131 ms2.1%
Connection.waitpsycopg/connection.py:4951 ms2.1%
ProjectTestsPage.setUpTestDataapps/projects/tests.py:3341 ms2.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms2.1%
QuerySet.createdjango/db/models/query.py:6691 ms2.1%
Test.saveapps/projects/models.py:2931 ms2.1%
TestManager.slugs_forapps/projects/models.py:240 existing = dict(self.filter(project_id=project_id, name__in=names).values_list("name", "slug"))1 ms2.1%
QuerySet.__iter__django/db/models/query.py:3901 ms2.1%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms2.1%
ValuesListIterable.__iter__django/db/models/query.py:2381 ms2.1%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms2.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms2.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms2.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms2.1%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1021 ms2.1%
QueryStats.addflakytest/profiling/dbtrack.py:381 ms2.1%
normalize_sqlflakytest/profiling/dbtrack.py:241 ms2.1%
call48 ms70.8%
CallInfo.from_call_pytest/runner.py:35348 ms70.8%
call_and_report.<locals>.<lambda>_pytest/runner.py:24548 ms70.8%
HookCaller.__call__pluggy/_hooks.py:51248 ms70.8%
PluginManager._hookexecpluggy/_manager.py:12048 ms70.8%
_multicallpluggy/_callers.py:12148 ms70.8%
pytest_runtest_call_pytest/runner.py:17948 ms70.8%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:57348 ms70.8%
SimpleTestCase.__call__django/test/testcases.py:31348 ms70.8%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36845 ms65.6%
TestCase.__call__<stdlib>/unittest/case.py:74745 ms65.6%
TestCase.run<stdlib>/unittest/case.py:69134 ms49.8%
TestCase._callTestMethod<stdlib>/unittest/case.py:63734 ms49.8%
ProjectTestsPage.test_not_logged_inapps/projects/tests.py:342 response = self.client.get(self.url)30 ms44.6%
Client.getdjango/test/client.py:112430 ms44.6%
RequestFactory.getdjango/test/client.py:47530 ms44.6%
RequestFactory.genericdjango/test/client.py:67130 ms44.6%
Client.requestdjango/test/client.py:108230 ms44.6%
ClientHandler.__call__django/test/client.py:17330 ms44.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6230 ms44.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10430 ms44.6%
WhiteNoise.add_fileswhitenoise/base.py:10830 ms44.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12025 ms36.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13123 ms34.1%
WhiteNoise.get_static_filewhitenoise/base.py:20821 ms31.5%
StaticFile.__init__whitenoise/responders.py:7711 ms15.7%
StaticFile.get_alternativeswhitenoise/responders.py:2014 ms5.2%
StaticFile.get_alternativeswhitenoise/responders.py:2004 ms5.2%
__init____init__:-12 ms2.6%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:492 ms2.6%
StaticFile.get_alternativeswhitenoise/responders.py:2032 ms2.6%
Headers.__setitem__<stdlib>/wsgiref/headers.py:622 ms2.6%
Headers.__init__<stdlib>/wsgiref/headers.py:432 ms2.6%
StaticFile.get_alternativeswhitenoise/responders.py:2042 ms2.6%
StaticFile.__init__whitenoise/responders.py:744 ms5.2%
parsedate<stdlib>/email/_parseaddr.py:1854 ms5.2%
StaticFile.__init__whitenoise/responders.py:764 ms5.2%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms2.6%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms2.6%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms2.6%
Headers.get<stdlib>/wsgiref/headers.py:1062 ms2.6%
StaticFile.__init__whitenoise/responders.py:732 ms2.6%
StaticFile.get_headerswhitenoise/responders.py:1812 ms2.6%
StaticFile.__init__whitenoise/responders.py:722 ms2.6%
WhiteNoise.get_static_filewhitenoise/base.py:2032 ms2.6%
WhiteNoise.add_cache_headerswhitenoise/base.py:2242 ms2.6%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms2.6%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms2.6%
URLMixin.urldebug_toolbar/panels/staticfiles.py:212 ms2.6%
suppress.__exit__<stdlib>/contextlib.py:5122 ms2.6%
<GC>~2 ms2.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms7.9%
scantreewhitenoise/base.py:2625 ms7.9%
scantreewhitenoise/base.py:2625 ms7.9%
scantreewhitenoise/base.py:2622 ms2.6%
scantreewhitenoise/base.py:2622 ms2.6%
scantreewhitenoise/base.py:2622 ms2.6%
scantreewhitenoise/base.py:2642 ms2.6%
scantreewhitenoise/base.py:2642 ms2.6%
ProjectTestsPage.test_not_logged_inapps/projects/tests.py:341 self.client.logout()4 ms5.2%
ClientMixin.logoutdjango/test/client.py:9232 ms2.6%
get_userdjango/contrib/auth/__init__.py:3182 ms2.6%
ModelBackend.get_userdjango/contrib/auth/backends.py:2322 ms2.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.6%
QuerySet.getdjango/db/models/query.py:6352 ms2.6%
QuerySet.__len__django/db/models/query.py:3722 ms2.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.6%
ModelIterable.__iter__django/db/models/query.py:952 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
ClientMixin.logoutdjango/test/client.py:9272 ms2.6%
logoutdjango/contrib/auth/__init__.py:2582 ms2.6%
SessionBase.flushdjango/contrib/sessions/backends/base.py:4202 ms2.6%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1752 ms2.6%
Model.deletedjango/db/models/base.py:12982 ms2.6%
Collector.deletedjango/db/models/deletion.py:4522 ms2.6%
DeleteQuery.delete_batchdjango/db/models/sql/subqueries.py:432 ms2.6%
DeleteQuery.do_querydjango/db/models/sql/subqueries.py:252 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms2.6%
SQLDeleteCompiler.as_sqldjango/db/models/sql/compiler.py:20062 ms2.6%
SQLDeleteCompiler._as_sqldjango/db/models/sql/compiler.py:19922 ms2.6%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms2.6%
WhereNode.as_sqldjango/db/models/sql/where.py:1512 ms2.6%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms2.6%
In.as_sqldjango/db/models/lookups.py:5562 ms2.6%
TestCase.run<stdlib>/unittest/case.py:68711 ms15.7%
TestCase._callSetUp<stdlib>/unittest/case.py:63411 ms15.7%
ProjectTestsPage.setUpapps/projects/tests.py:337 self.client.force_login(self.user)11 ms15.7%
ClientMixin.force_logindjango/test/client.py:85511 ms15.7%
ClientMixin._logindjango/test/client.py:8817 ms10.5%
logindjango/contrib/auth/__init__.py:1874 ms5.2%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4342 ms2.6%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms2.6%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1982 ms2.6%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms2.6%
QuerySet.existsdjango/db/models/query.py:13372 ms2.6%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms2.6%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4372 ms2.6%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1752 ms2.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.6%
QuerySet.getdjango/db/models/query.py:6352 ms2.6%
QuerySet.__len__django/db/models/query.py:3722 ms2.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.6%
ModelIterable.__iter__django/db/models/query.py:952 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
logindjango/contrib/auth/__init__.py:1752 ms2.6%
SessionBase.__contains__django/contrib/sessions/backends/base.py:522 ms2.6%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2512 ms2.6%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms2.6%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms2.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.6%
QuerySet.getdjango/db/models/query.py:6352 ms2.6%
QuerySet.__len__django/db/models/query.py:3722 ms2.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.6%
ModelIterable.__iter__django/db/models/query.py:952 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
logindjango/contrib/auth/__init__.py:1972 ms2.6%
Signal.senddjango/dispatch/dispatcher.py:2092 ms2.6%
update_last_logindjango/contrib/auth/models.py:242 ms2.6%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:622 ms2.6%
Model.savedjango/db/models/base.py:8742 ms2.6%
Model.save_basedjango/db/models/base.py:9662 ms2.6%
Model._save_tabledjango/db/models/base.py:11102 ms2.6%
Model._do_updatedjango/db/models/base.py:12112 ms2.6%
QuerySet._updatedjango/db/models/query.py:13272 ms2.6%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms2.6%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
ClientMixin._logindjango/test/client.py:8762 ms2.6%
ClientMixin.sessiondjango/test/client.py:8122 ms2.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1212 ms2.6%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms2.6%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1982 ms2.6%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms2.6%
QuerySet.existsdjango/db/models/query.py:13372 ms2.6%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms2.6%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.6%
ClientMixin._logindjango/test/client.py:8832 ms2.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms2.6%
Model.savedjango/db/models/base.py:8742 ms2.6%
Model.save_basedjango/db/models/base.py:9662 ms2.6%
Model._save_tabledjango/db/models/base.py:11102 ms2.6%
Model._do_updatedjango/db/models/base.py:12112 ms2.6%
QuerySet._updatedjango/db/models/query.py:13272 ms2.6%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms2.6%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3714 ms5.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()4 ms5.2%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms2.6%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms2.6%
TestCase._rollback_atomicsdjango/test/testcases.py:14052 ms2.6%
Atomic.__exit__django/db/transaction.py:2862 ms2.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.6%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms2.6%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
Estimated from 41 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
apps/projects/tests.py:342
response = self.client.get(self.url)
ProjectTestsPage.test_not_logged_in
· Libraries
|
30 ms |
|
apps/projects/tests.py:337
self.client.force_login(self.user)
ProjectTestsPage.setUp
· Database
|
11 ms |
|
apps/projects/tests.py:341
self.client.logout()
ProjectTestsPage.test_not_logged_in
· Database
|
4 ms |
|
apps/projects/testing.py:76
membership, _ = Membership.objects.get_or_create(
add_member
· Database
|
3 ms |
|
apps/projects/tests.py:331
cls.user = User.objects.create_user("testuser")
ProjectTestsPage.setUpTestData
· Database
|
1 ms |
|
apps/orgs/models.py:46
while slug in reserved or taken.filter(slug=slug).exists():
unique_slug
· Database
|
1 ms |
|
apps/projects/models.py:240
existing = dict(self.filter(project_id=project_id, name__in=names).values_list("name", "slug"))
TestManager.slugs_for
· Database
|
1 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_ProjectTestsPage class | 18 ms |
| _django_setup_unittest class | 0.34 ms |
| _template_string_if_invalid_marker function | 0.07 ms |
| _dj_autoclear_mailbox function | 0.07 ms |
| _django_db_marker function | 0.04 ms |
| _django_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
37 queries · 14 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/projects/tests.py:342
|
34 ms |
|
setup setUpClass
django/test/testcases.py:1423
|
20 ms |
|
call setUp
apps/projects/tests.py:337
|
11 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
4 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 50 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 24 minutes ago | CI github-actions:test | passed | 68 ms | Profile |
| 50 minutes ago | CI github-actions:test | passed | 69 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 78 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 40 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 69 ms | Profile |
| 2 years ago | CI github-actions | passed | 97 ms | Run |
| 2 years, 2 months ago | CI github-actions | passed | 95 ms | Run |
| 2 years, 3 months ago | CI github-actions | passed | 101 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 103 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 98 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 100 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 94 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 123 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 91 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 94 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 93 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 94 ms | Run |
| 2 years, 6 months ago | CI github-actions | passed | 94 ms | Run |
| 2 years, 6 months ago | CI github-actions | passed | 93 ms | Run |
| 2 years, 6 months ago | CI github-actions | passed | 91 ms | Run |