Tests / apps/projects/tests.py
ProjectEditPage::test_other_peoples_project
First seen 2 years, 10 months ago in b9e98d9
CI
github-actions:test
12 runs
Average
50 ms
median 53 ms
max 76 ms
max 76 ms
Phases
Setup 0.66 ms
Call 49 ms
Teardown 0.17 ms
Categories
Database 24 ms
Other (Libraries, Unsampled, Deep copies, pytest) 26 ms
33 database queries per run
Needs 69 KB of memory (max 824 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 16 hours ago ·
open run
call48 ms98.1%
ProjectEditPage.test_other_peoples_projectapps/projects/tests.py:154 response = self.client.get(other_project.url("project_edit"))19 ms38.5%
Client.getdjango/test/client.py:112419 ms38.5%
RequestFactory.getdjango/test/client.py:47519 ms38.5%
RequestFactory.genericdjango/test/client.py:67119 ms38.5%
Client.requestdjango/test/client.py:108219 ms38.5%
ClientHandler.__call__django/test/client.py:17319 ms38.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6219 ms38.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10419 ms38.5%
WhiteNoise.add_fileswhitenoise/base.py:10819 ms38.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12016 ms31.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13116 ms31.5%
WhiteNoise.get_static_filewhitenoise/base.py:2089 ms17.5%
StaticFile.__init__whitenoise/responders.py:733 ms7.0%
StaticFile.get_headerswhitenoise/responders.py:1783 ms7.0%
parsedate<stdlib>/email/_parseaddr.py:1852 ms3.5%
StaticFile.__init__whitenoise/responders.py:742 ms3.5%
parsedate<stdlib>/email/_parseaddr.py:1852 ms3.5%
StaticFile.__init__whitenoise/responders.py:772 ms3.5%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms3.5%
StaticFile.__init__whitenoise/responders.py:762 ms3.5%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms3.5%
WhiteNoise.get_static_filewhitenoise/base.py:2035 ms10.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2245 ms10.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1763 ms7.0%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1973 ms7.0%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms3.5%
WhiteNoise.get_static_filewhitenoise/base.py:2022 ms3.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms7.0%
scantreewhitenoise/base.py:2623 ms7.0%
scantreewhitenoise/base.py:2623 ms7.0%
scantreewhitenoise/base.py:2622 ms3.5%
scantreewhitenoise/base.py:2622 ms3.5%
scantreewhitenoise/base.py:2622 ms3.5%
scantreewhitenoise/base.py:2602 ms3.5%
scantreewhitenoise/base.py:2642 ms3.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()17 ms35.0%
TestCase._fixture_teardowndjango/test/testcases.py:149016 ms31.5%
TestCase._databases_support_transactionsdjango/test/testcases.py:140916 ms31.5%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:49214 ms28.0%
Cursor.executepsycopg/cursor.py:11314 ms28.0%
Connection.waitpsycopg/connection.py:49514 ms28.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:20614 ms28.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28614 ms28.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7814 ms28.0%
connections_support_transactionsdjango/test/testcases.py:13222 ms3.5%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms3.5%
TestCase._rollback_atomicsdjango/test/testcases.py:14052 ms3.5%
Atomic.__exit__django/db/transaction.py:2862 ms3.5%
ProjectEditPage.setUpapps/projects/tests.py:143 self.client.force_login(self.user)9 ms17.5%
ClientMixin.force_logindjango/test/client.py:8559 ms17.5%
ClientMixin._logindjango/test/client.py:8763 ms7.0%
ClientMixin.sessiondjango/test/client.py:8123 ms7.0%
SessionStore.savedjango/contrib/sessions/backends/db.py:1213 ms7.0%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms3.5%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1982 ms3.5%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms3.5%
QuerySet.existsdjango/db/models/query.py:13372 ms3.5%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms3.5%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms3.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.5%
Cursor.executepsycopg/cursor.py:1132 ms3.5%
Connection.waitpsycopg/connection.py:4952 ms3.5%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms3.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms3.5%
Atomic.__exit__django/db/transaction.py:2472 ms3.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.5%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms3.5%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms3.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.5%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.5%
Cursor.executepsycopg/cursor.py:1132 ms3.5%
Connection.waitpsycopg/connection.py:4952 ms3.5%
ClientMixin._logindjango/test/client.py:8813 ms7.0%
logindjango/contrib/auth/__init__.py:1872 ms3.5%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4342 ms3.5%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms3.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms3.5%
Model.savedjango/db/models/base.py:8742 ms3.5%
Model.save_basedjango/db/models/base.py:9662 ms3.5%
Model._save_tabledjango/db/models/base.py:11672 ms3.5%
Model._do_insertdjango/db/models/base.py:12182 ms3.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.5%
QuerySet._insertdjango/db/models/query.py:19182 ms3.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms3.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.5%
Cursor.executepsycopg/cursor.py:1132 ms3.5%
Connection.waitpsycopg/connection.py:4952 ms3.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms3.5%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms3.5%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms3.5%
PostgresClientQuery.dumppsycopg/_queries.py:2992 ms3.5%
PostgresClientQuery.dump.<locals>.<genexpr>psycopg/_queries.py:3002 ms3.5%
logindjango/contrib/auth/__init__.py:1972 ms3.5%
Signal.senddjango/dispatch/dispatcher.py:2092 ms3.5%
update_last_logindjango/contrib/auth/models.py:242 ms3.5%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:622 ms3.5%
Model.savedjango/db/models/base.py:8742 ms3.5%
Model.save_basedjango/db/models/base.py:9662 ms3.5%
Model._save_tabledjango/db/models/base.py:11102 ms3.5%
Model._do_updatedjango/db/models/base.py:12112 ms3.5%
QuerySet._updatedjango/db/models/query.py:13272 ms3.5%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms3.5%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms3.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.5%
Cursor.executepsycopg/cursor.py:1132 ms3.5%
Connection.waitpsycopg/connection.py:4952 ms3.5%
ClientMixin._logindjango/test/client.py:8832 ms3.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms3.5%
Model.savedjango/db/models/base.py:8742 ms3.5%
Model.save_basedjango/db/models/base.py:9662 ms3.5%
Model._save_tabledjango/db/models/base.py:11102 ms3.5%
Model._do_updatedjango/db/models/base.py:12112 ms3.5%
QuerySet._updatedjango/db/models/query.py:13272 ms3.5%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms3.5%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms3.5%
ProjectEditPage.test_other_peoples_projectapps/projects/tests.py:153 other_project = make_project("Other Project", members=[User.objects.create_user("otheruser")])3 ms7.0%
make_projectapps/projects/testing.py:64 project = Project.objects.create(2 ms3.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.5%
QuerySet.createdjango/db/models/query.py:6692 ms3.5%
Model.savedjango/db/models/base.py:8742 ms3.5%
Model.save_basedjango/db/models/base.py:9662 ms3.5%
Model._save_tabledjango/db/models/base.py:11672 ms3.5%
Model._do_insertdjango/db/models/base.py:12182 ms3.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.5%
QuerySet._insertdjango/db/models/query.py:19182 ms3.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19242 ms3.5%
SQLInsertCompiler.as_sqldjango/db/models/sql/compiler.py:18132 ms3.5%
make_projectapps/projects/testing.py:712 ms3.5%
add_memberapps/projects/testing.py:76 membership, _ = Membership.objects.get_or_create(2 ms3.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.5%
QuerySet.get_or_createdjango/db/models/query.py:9872 ms3.5%
QuerySet.getdjango/db/models/query.py:6352 ms3.5%
QuerySet.__len__django/db/models/query.py:3722 ms3.5%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.5%
ModelIterable.__iter__django/db/models/query.py:952 ms3.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.5%
Cursor.executepsycopg/cursor.py:1132 ms3.5%
Connection.waitpsycopg/connection.py:4952 ms3.5%
Estimated from 28 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/projects/tests.py:154
response = self.client.get(other_project.url("project_edit"))
ProjectEditPage.test_other_peoples_project
· Libraries
|
19 ms |
|
apps/projects/tests.py:143
self.client.force_login(self.user)
ProjectEditPage.setUp
· Database
|
9 ms |
|
apps/projects/testing.py:64
project = Project.objects.create(
make_project
· Database
|
2 ms |
|
apps/projects/testing.py:76
membership, _ = Membership.objects.get_or_create(
add_member
· Database
|
2 ms |
Fixtures
Exact setup time| _django_set_urlconf function | 0.25 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
33 queries · 9 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/projects/tests.py:153
|
22 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
17 ms |
|
call setUp
apps/projects/tests.py:143
|
9 ms |
Reliability
12 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 12 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 16 hours ago | CI github-actions:test | passed | 49 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 29 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 57 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 48 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 76 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 39 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 56 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 53 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 53 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 61 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 26 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 52 ms | Profile |