Tests / starter_packs/tests.py
TestOwnerManagement::test_invite_existing_owner_is_noop
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
152 ms
median 116 ms
max 306 ms
max 306 ms
Phases
Setup 2 ms
Call 149 ms
Teardown 0.41 ms
Categories
Database 37 ms
Other (Libraries, Unsampled, Deep copies, pytest, ...) 114 ms
29 database queries per run
Needs 184 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
setup1 ms1.3%
call95 ms98.4%
TestOwnerManagement.test_invite_existing_owner_is_noopstarter_packs/tests.py:508 response = self.client.post(reverse("invite_owner", args=[self.pack.slug, self.friend.id]))82 ms85.2%
Client.postdjango/test/client.py:116282 ms85.2%
RequestFactory.postdjango/test/client.py:49982 ms85.2%
RequestFactory.genericdjango/test/client.py:67182 ms85.2%
Client.requestdjango/test/client.py:109182 ms85.2%
ClientHandler.__call__django/test/client.py:17382 ms85.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6382 ms85.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10482 ms85.2%
WhiteNoise.add_fileswhitenoise/base.py:10882 ms85.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12044 ms45.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13144 ms45.9%
WhiteNoise.get_static_filewhitenoise/base.py:21732 ms32.8%
StaticFile.__init__whitenoise/responders.py:7713 ms13.1%
StaticFile.get_alternativeswhitenoise/responders.py:20013 ms13.1%
StaticFile.__init__whitenoise/responders.py:7213 ms13.1%
StaticFile.get_file_statswhitenoise/responders.py:1616 ms6.6%
StaticFile.__init__whitenoise/responders.py:736 ms6.6%
StaticFile.get_headerswhitenoise/responders.py:1816 ms6.6%
Headers.__setitem__<stdlib>/wsgiref/headers.py:626 ms6.6%
Headers.__delitem__<stdlib>/wsgiref/headers.py:716 ms6.6%
WhiteNoise.get_static_filewhitenoise/base.py:21213 ms13.1%
WhiteNoise.add_cache_headerswhitenoise/base.py:23313 ms13.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11538 ms39.3%
scantreewhitenoise/base.py:27138 ms39.3%
scantreewhitenoise/base.py:27132 ms32.8%
scantreewhitenoise/base.py:27119 ms19.7%
scantreewhitenoise/base.py:27119 ms19.7%
scantreewhitenoise/base.py:27113 ms13.1%
scantreewhitenoise/base.py:27313 ms13.1%
<GC>~6 ms6.6%
scantreewhitenoise/base.py:2736 ms6.6%
scantreewhitenoise/base.py:27313 ms13.1%
scantreewhitenoise/base.py:2736 ms6.6%
TestOwnerManagement.test_invite_existing_owner_is_noopstarter_packs/tests.py:507 self.client.force_login(self.owner)13 ms13.1%
ClientMixin.force_logindjango/test/client.py:85813 ms13.1%
ClientMixin._logindjango/test/client.py:8846 ms6.6%
ClientMixin.sessiondjango/test/client.py:8156 ms6.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1216 ms6.6%
SessionStore.createdjango/contrib/sessions/backends/db.py:746 ms6.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1236 ms6.6%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1006 ms6.6%
Model.__init__django/db/models/base.py:5046 ms6.6%
ClientMixin._logindjango/test/client.py:8916 ms6.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1266 ms6.6%
Atomic.__exit__django/db/transaction.py:2596 ms6.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms6.6%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4316 ms6.6%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3756 ms6.6%
CursorWrapper.executedjango/db/backends/utils.py:796 ms6.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms6.6%
CursorWrapper._executedjango/db/backends/utils.py:1036 ms6.6%
Cursor.executepsycopg/cursor.py:1136 ms6.6%
Connection.waitpsycopg/connection.py:4956 ms6.6%
Estimated from 16 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/tests.py:508
response = self.client.post(reverse("invite_owner", args=[self.pack.slug, self.friend.id]))
TestOwnerManagement.test_invite_existing_owner_is_noop
· Libraries
|
82 ms |
|
starter_packs/tests.py:507
self.client.force_login(self.owner)
TestOwnerManagement.test_invite_existing_owner_is_noop
· Database
|
13 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.06 ms |
| _dj_autoclear_mailbox function | 0.06 ms |
| _django_db_marker function | 0.05 ms |
| _django_isolate_apps function | 0.05 ms |
| _live_server_helper function | 0.05 ms |
| _django_set_urlconf function | 0.05 ms |
| _django_clear_site_cache function | 0.04 ms |
| monkeypatch function | 0.03 ms |
Database
29 queries · 15 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:508
|
95 ms |
| setup pytest internals | 1 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 | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 97 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 62 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 95 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 141 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 72 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 107 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 117 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 116 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 294 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 306 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 261 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 94 ms | Run |