Tests / starter_packs/tests.py
TestDeleteStarterPack::test_not_owned_starter_pack
First seen 2 years ago in 1b5db0c
CI
github-actions:test
13 runs
Average
138 ms
median 100 ms
max 346 ms
max 346 ms
Phases
Setup 8 ms
Call 126 ms
Teardown 4 ms
Categories
Database 36 ms
Factories 2 ms
Other (Libraries, pytest, Unsampled, Deep copies, ...) 100 ms
25 database queries per run
Needs 101 KB of memory (max 924 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call68 ms93.2%
TestDeleteStarterPack.test_not_owned_starter_packstarter_packs/tests.py:334 response = self.client.get(reverse("delete_starter_pack", args=[self.starter_pack.slug]))41 ms55.9%
Client.getdjango/test/client.py:113341 ms55.9%
RequestFactory.getdjango/test/client.py:47541 ms55.9%
RequestFactory.genericdjango/test/client.py:67141 ms55.9%
Client.requestdjango/test/client.py:109141 ms55.9%
ClientHandler.__call__django/test/client.py:17341 ms55.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6341 ms55.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10441 ms55.9%
WhiteNoise.add_fileswhitenoise/base.py:10841 ms55.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11534 ms46.6%
scantreewhitenoise/base.py:27127 ms37.3%
scantreewhitenoise/base.py:27127 ms37.3%
scantreewhitenoise/base.py:27314 ms18.6%
scantreewhitenoise/base.py:27114 ms18.6%
scantreewhitenoise/base.py:27114 ms18.6%
scantreewhitenoise/base.py:27114 ms18.6%
scantreewhitenoise/base.py:2697 ms9.3%
scantreewhitenoise/base.py:2737 ms9.3%
scantreewhitenoise/base.py:2737 ms9.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1207 ms9.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1317 ms9.3%
WhiteNoise.get_static_filewhitenoise/base.py:2177 ms9.3%
StaticFile.__init__whitenoise/responders.py:727 ms9.3%
StaticFile.get_file_statswhitenoise/responders.py:1617 ms9.3%
__init____init__:-17 ms9.3%
FileEntry.__init__whitenoise/responders.py:2607 ms9.3%
<GC>~7 ms9.3%
TestDeleteStarterPack.test_not_owned_starter_packstarter_packs/tests.py:332 other_user = baker.make("auth.User")14 ms18.6%
makemodel_bakery/baker.py:17514 ms18.6%
Baker.makemodel_bakery/baker.py:45414 ms18.6%
Baker._makemodel_bakery/baker.py:54214 ms18.6%
Baker.instancemodel_bakery/baker.py:6597 ms9.3%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:627 ms9.3%
Model.savedjango/db/models/base.py:9047 ms9.3%
Model.save_basedjango/db/models/base.py:9967 ms9.3%
Model._save_tabledjango/db/models/base.py:11997 ms9.3%
Model._do_insertdjango/db/models/base.py:12517 ms9.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:877 ms9.3%
QuerySet._insertdjango/db/models/query.py:21417 ms9.3%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19367 ms9.3%
CursorWrapper.executedjango/db/backends/utils.py:797 ms9.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms9.3%
CursorWrapper._executedjango/db/backends/utils.py:1057 ms9.3%
Cursor.executepsycopg/cursor.py:1137 ms9.3%
Connection.waitpsycopg/connection.py:4957 ms9.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2067 ms9.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2867 ms9.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:787 ms9.3%
TestDeleteStarterPack.test_not_owned_starter_packstarter_packs/tests.py:333 self.client.force_login(other_user)14 ms18.6%
ClientMixin.force_logindjango/test/client.py:85814 ms18.6%
ClientMixin._logindjango/test/client.py:8847 ms9.3%
ClientMixin.sessiondjango/test/client.py:8157 ms9.3%
SessionStore.savedjango/contrib/sessions/backends/db.py:1217 ms9.3%
SessionStore.createdjango/contrib/sessions/backends/db.py:707 ms9.3%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2017 ms9.3%
SessionStore.existsdjango/contrib/sessions/backends/db.py:637 ms9.3%
QuerySet.existsdjango/db/models/query.py:14587 ms9.3%
Query.has_resultsdjango/db/models/sql/query.py:6877 ms9.3%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15937 ms9.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16257 ms9.3%
CursorWrapper.executedjango/db/backends/utils.py:797 ms9.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms9.3%
CursorWrapper._executedjango/db/backends/utils.py:1057 ms9.3%
Cursor.executepsycopg/cursor.py:1137 ms9.3%
Connection.waitpsycopg/connection.py:4957 ms9.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2067 ms9.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2867 ms9.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:787 ms9.3%
ClientMixin._logindjango/test/client.py:8897 ms9.3%
logindjango/contrib/auth/__init__.py:1777 ms9.3%
SessionBase.__contains__django/contrib/sessions/backends/base.py:527 ms9.3%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2547 ms9.3%
SessionStore.loaddjango/contrib/sessions/backends/db.py:557 ms9.3%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:347 ms9.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:877 ms9.3%
QuerySet.getdjango/db/models/query.py:6927 ms9.3%
QuerySet.filterdjango/db/models/query.py:16767 ms9.3%
QuerySet._filter_or_excludedjango/db/models/query.py:16897 ms9.3%
teardown4 ms5.8%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()4 ms5.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms5.8%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3554 ms5.8%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4084 ms5.8%
Connection.closepsycopg/connection.py:2014 ms5.8%
Estimated from 63 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/tests.py:334
response = self.client.get(reverse("delete_starter_pack", args=[self.starter_pack.slug]))
TestDeleteStarterPack.test_not_owned_starter_pack
· Libraries
|
41 ms |
|
starter_packs/tests.py:332
other_user = baker.make("auth.User")
TestDeleteStarterPack.test_not_owned_starter_pack
· Factories
|
14 ms |
|
starter_packs/tests.py:333
self.client.force_login(other_user)
TestDeleteStarterPack.test_not_owned_starter_pack
· Database
|
14 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.03 ms |
| _django_db_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 |
| monkeypatch function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
Database
24 queries · 9 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:334
|
68 ms |
|
teardown tearDownClass
django/test/testcases.py:1458
|
4 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 | 73 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 87 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 234 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 53 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 346 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 135 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 79 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 106 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 100 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 66 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 193 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 100 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 223 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 75 ms | Run |