Tests / starter_packs/tests.py
TestOwnerManagement::test_manage_owners_page
First seen 1 month, 1 week ago in 0c23747
CI
github-actions:test
13 runs
Average
157 ms
median 123 ms
max 365 ms
max 365 ms
Phases
Setup 9 ms
Call 147 ms
Teardown 1 ms
Categories
Database 43 ms
Factories 0.52 ms
App code 0.09 ms
Other (Libraries, Templates, pytest, Deep copies, ...) 113 ms
29 database queries per run
Needs 169 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
call62 ms98.6%
TestOwnerManagement.test_manage_owners_pagestarter_packs/tests.py:454 self.client.force_login(self.owner)35 ms54.8%
ClientMixin.force_logindjango/test/client.py:85835 ms54.8%
ClientMixin._logindjango/test/client.py:88921 ms32.9%
logindjango/contrib/auth/__init__.py:18914 ms21.9%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4377 ms11.0%
SessionStore.createdjango/contrib/sessions/backends/db.py:707 ms11.0%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2017 ms11.0%
SessionStore.existsdjango/contrib/sessions/backends/db.py:637 ms11.0%
QuerySet.existsdjango/db/models/query.py:14587 ms11.0%
Query.has_resultsdjango/db/models/sql/query.py:6877 ms11.0%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15937 ms11.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16257 ms11.0%
CursorWrapper.executedjango/db/backends/utils.py:797 ms11.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms11.0%
CursorWrapper._executedjango/db/backends/utils.py:1057 ms11.0%
Cursor.executepsycopg/cursor.py:1137 ms11.0%
Connection.waitpsycopg/connection.py:4957 ms11.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2067 ms11.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2867 ms11.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:787 ms11.0%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4407 ms11.0%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1757 ms11.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:877 ms11.0%
QuerySet.getdjango/db/models/query.py:6947 ms11.0%
logindjango/contrib/auth/__init__.py:1777 ms11.0%
SessionBase.__contains__django/contrib/sessions/backends/base.py:527 ms11.0%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2547 ms11.0%
SessionStore.loaddjango/contrib/sessions/backends/db.py:557 ms11.0%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:347 ms11.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:877 ms11.0%
QuerySet.getdjango/db/models/query.py:7027 ms11.0%
QuerySet.__len__django/db/models/query.py:4217 ms11.0%
QuerySet._fetch_alldjango/db/models/query.py:22627 ms11.0%
ModelIterable.__iter__django/db/models/query.py:1037 ms11.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16257 ms11.0%
CursorWrapper.executedjango/db/backends/utils.py:797 ms11.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms11.0%
CursorWrapper._executedjango/db/backends/utils.py:1057 ms11.0%
Cursor.executepsycopg/cursor.py:1137 ms11.0%
Connection.waitpsycopg/connection.py:4957 ms11.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2057 ms11.0%
BaseCursor._convert_querypsycopg/_cursor_base.py:4657 ms11.0%
ClientMixin._logindjango/test/client.py:88414 ms21.9%
ClientMixin.sessiondjango/test/client.py:81514 ms21.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:12114 ms21.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:707 ms11.0%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2007 ms11.0%
get_random_stringdjango/utils/crypto.py:787 ms11.0%
get_random_string.<locals>.<genexpr>django/utils/crypto.py:787 ms11.0%
Random.choice<stdlib>/random.py:3547 ms11.0%
Random._randbelow_with_getrandbits<stdlib>/random.py:2497 ms11.0%
SystemRandom.getrandbits<stdlib>/random.py:9157 ms11.0%
SessionStore.createdjango/contrib/sessions/backends/db.py:747 ms11.0%
SessionStore.savedjango/contrib/sessions/backends/db.py:1277 ms11.0%
Model.savedjango/db/models/base.py:9047 ms11.0%
Model.save_basedjango/db/models/base.py:9967 ms11.0%
Model._save_tabledjango/db/models/base.py:11997 ms11.0%
Model._do_insertdjango/db/models/base.py:12517 ms11.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:877 ms11.0%
QuerySet._insertdjango/db/models/query.py:21417 ms11.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19367 ms11.0%
CursorWrapper.executedjango/db/backends/utils.py:797 ms11.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms11.0%
CursorWrapper._executedjango/db/backends/utils.py:1057 ms11.0%
Cursor.executepsycopg/cursor.py:1137 ms11.0%
Connection.waitpsycopg/connection.py:4957 ms11.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2067 ms11.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2867 ms11.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:787 ms11.0%
TestOwnerManagement.test_manage_owners_pagestarter_packs/tests.py:455 response = self.client.get(reverse("manage_owners", args=[self.pack.slug]))21 ms32.9%
Client.getdjango/test/client.py:113314 ms21.9%
RequestFactory.getdjango/test/client.py:47514 ms21.9%
RequestFactory.genericdjango/test/client.py:67114 ms21.9%
Client.requestdjango/test/client.py:109114 ms21.9%
ClientHandler.__call__django/test/client.py:17314 ms21.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6314 ms21.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10414 ms21.9%
WhiteNoise.add_fileswhitenoise/base.py:10814 ms21.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11514 ms21.9%
scantreewhitenoise/base.py:27114 ms21.9%
scantreewhitenoise/base.py:27114 ms21.9%
scantreewhitenoise/base.py:27114 ms21.9%
scantreewhitenoise/base.py:27114 ms21.9%
scantreewhitenoise/base.py:27114 ms21.9%
scantreewhitenoise/base.py:27314 ms21.9%
<GC>~14 ms21.9%
TestData.__get__django/test/testcases.py:13707 ms11.0%
deepcopy<stdlib>/copy.py:1567 ms11.0%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()7 ms11.0%
TestCase._fixture_setupdjango/test/testcases.py:14817 ms11.0%
TestCase._enter_atomicsdjango/test/testcases.py:13997 ms11.0%
Atomic.__enter__django/db/transaction.py:2237 ms11.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms11.0%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4007 ms11.0%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3667 ms11.0%
Estimated from 9 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/tests.py:454
self.client.force_login(self.owner)
TestOwnerManagement.test_manage_owners_page
· Database
|
35 ms |
|
starter_packs/tests.py:455
response = self.client.get(reverse("manage_owners", args=[self.pack.slug]))
TestOwnerManagement.test_manage_owners_page
· Libraries
|
21 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.03 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _django_set_urlconf 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
27 queries · 9 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:455
|
55 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
7 ms |
Reliability
14 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 14 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 63 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 123 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 188 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 64 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 109 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 228 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 100 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 124 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 109 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 75 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 233 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 257 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 365 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 91 ms | Run |