Tests / starter_packs/tests.py
TestRemoteFollowStarterPack::test_deleted_pack_404
First seen 14 hours ago in 0c23747
CI
github-actions:test
4 runs
Average
217 ms
median 241 ms
max 313 ms
max 313 ms
Phases
Setup 37 ms
Call 180 ms
Teardown 0.36 ms
Categories
Database 50 ms
Factories 0.60 ms
Other (Libraries, pytest, Logging, Unsampled) 167 ms
10 database queries per run
Needs 335 KB of memory (max 1 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 9 hours ago ·
open run
setup18 ms24.0%
CallInfo.from_call_pytest/runner.py:36118 ms24.0%
call_and_report.<locals>.<lambda>_pytest/runner.py:25018 ms24.0%
HookCaller.__call__pluggy/_hooks.py:51218 ms24.0%
PluginManager._hookexecpluggy/_manager.py:12018 ms24.0%
_multicallpluggy/_callers.py:12118 ms24.0%
pytest_runtest_setup_pytest/runner.py:17018 ms24.0%
SetupState.setup_pytest/runner.py:53618 ms24.0%
TestCaseFunction.setup_pytest/unittest.py:24818 ms24.0%
Function.setup_pytest/python.py:171018 ms24.0%
TopRequest._fillfixtures_pytest/fixtures.py:80618 ms24.0%
FixtureRequest.getfixturevalue_pytest/fixtures.py:63018 ms24.0%
FixtureRequest._get_active_fixturedef_pytest/fixtures.py:72618 ms24.0%
FixtureDef.execute_pytest/fixtures.py:123218 ms24.0%
HookCaller.__call__pluggy/_hooks.py:51217 ms22.6%
PluginManager._hookexecpluggy/_manager.py:12017 ms22.6%
_multicallpluggy/_callers.py:12117 ms22.6%
pytest_fixture_setup_pytest/fixtures.py:132817 ms22.6%
call_fixture_func_pytest/fixtures.py:99817 ms22.6%
UnitTestCase._register_unittest_setup_class_fixture.<locals>.unittest_setup_class_fixture_pytest/unittest.py:15916 ms21.2%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()9 ms12.7%
TestCase._enter_atomicsdjango/test/testcases.py:13999 ms12.7%
Atomic.__enter__django/db/transaction.py:2109 ms12.7%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4549 ms12.7%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3049 ms12.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms12.7%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2799 ms12.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms12.7%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2569 ms12.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms12.7%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3459 ms12.7%
Connection.connectpsycopg/connection.py:1099 ms12.7%
wait_connpsycopg/waiting.py:1414 ms5.7%
EpollSelector.select<stdlib>/selectors.py:4524 ms5.7%
wait_connpsycopg/waiting.py:1454 ms5.7%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms5.7%
wait_connpsycopg/waiting.py:1361 ms1.4%
BaseConnection._connect_genpsycopg/_connection_base.py:4391 ms1.4%
TestCase.setUpClassdjango/test/testcases.py:1442 cls.setUpTestData()6 ms8.5%
TestRemoteFollowStarterPack.setUpTestDatastarter_packs/tests.py:1235 cls.starter_pack = baker.make("starter_packs.StarterPack", published_at=timezone.now())6 ms8.5%
makemodel_bakery/baker.py:1756 ms8.5%
Baker.makemodel_bakery/baker.py:4546 ms8.5%
Baker._makemodel_bakery/baker.py:5294 ms5.7%
Baker.generate_valuemodel_bakery/baker.py:10194 ms5.7%
gen_relatedmodel_bakery/random_gen.py:4544 ms5.7%
makemodel_bakery/baker.py:1754 ms5.7%
Baker.makemodel_bakery/baker.py:4544 ms5.7%
Baker._makemodel_bakery/baker.py:5424 ms5.7%
Baker.instancemodel_bakery/baker.py:6594 ms5.7%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:624 ms5.7%
Model.savedjango/db/models/base.py:9044 ms5.7%
Model.save_basedjango/db/models/base.py:9964 ms5.7%
Model._save_tabledjango/db/models/base.py:11994 ms5.7%
Model._do_insertdjango/db/models/base.py:12514 ms5.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms5.7%
QuerySet._insertdjango/db/models/query.py:21414 ms5.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19364 ms5.7%
CursorWrapper.executedjango/db/backends/utils.py:794 ms5.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms5.7%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1004 ms5.7%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms5.7%
Cursor.executepsycopg/cursor.py:1134 ms5.7%
Connection.waitpsycopg/connection.py:4954 ms5.7%
Baker._makemodel_bakery/baker.py:5422 ms2.8%
Baker.instancemodel_bakery/baker.py:6592 ms2.8%
Model.savedjango/db/models/base.py:9042 ms2.8%
Model.save_basedjango/db/models/base.py:9962 ms2.8%
Model._save_tabledjango/db/models/base.py:11992 ms2.8%
Model._do_insertdjango/db/models/base.py:12512 ms2.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.8%
QuerySet._insertdjango/db/models/query.py:21412 ms2.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19362 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.8%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.8%
Cursor.executepsycopg/cursor.py:1132 ms2.8%
Connection.waitpsycopg/connection.py:4952 ms2.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.8%
_django_setup_unittestpytest_django/plugin.py:6251 ms1.4%
FixtureRequest.getfixturevalue_pytest/fixtures.py:6301 ms1.4%
call56 ms75.6%
CallInfo.from_call_pytest/runner.py:36156 ms75.6%
call_and_report.<locals>.<lambda>_pytest/runner.py:25056 ms75.6%
HookCaller.__call__pluggy/_hooks.py:51256 ms75.6%
PluginManager._hookexecpluggy/_manager.py:12056 ms75.6%
_multicallpluggy/_callers.py:12156 ms75.6%
pytest_runtest_call_pytest/runner.py:18456 ms75.6%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:61456 ms75.6%
SimpleTestCase.__call__django/test/testcases.py:31456 ms75.6%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36953 ms72.5%
TestCase.__call__<stdlib>/unittest/case.py:74753 ms72.5%
TestCase.run<stdlib>/unittest/case.py:69153 ms72.5%
TestCase._callTestMethod<stdlib>/unittest/case.py:63753 ms72.5%
TestRemoteFollowStarterPack.test_deleted_pack_404starter_packs/tests.py:1291 response = self.client.post(url, {"handle": "[email protected]"})46 ms63.0%
Client.postdjango/test/client.py:116246 ms63.0%
RequestFactory.postdjango/test/client.py:49946 ms63.0%
RequestFactory.genericdjango/test/client.py:67146 ms63.0%
Client.requestdjango/test/client.py:109146 ms63.0%
ClientHandler.__call__django/test/client.py:17340 ms53.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6340 ms53.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10440 ms53.6%
WhiteNoise.add_fileswhitenoise/base.py:10840 ms53.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12026 ms34.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13126 ms34.7%
WhiteNoise.get_static_filewhitenoise/base.py:21716 ms22.1%
StaticFile.__init__whitenoise/responders.py:737 ms9.5%
StaticFile.get_headerswhitenoise/responders.py:1782 ms3.2%
StaticFile.get_headerswhitenoise/responders.py:1762 ms3.2%
StaticFile.get_headerswhitenoise/responders.py:1702 ms3.2%
StaticFile.__init__whitenoise/responders.py:765 ms6.3%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1902 ms3.2%
Response.__init__whitenoise/responders.py:182 ms3.2%
<GC>~2 ms3.2%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms3.2%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms3.2%
Headers.get<stdlib>/wsgiref/headers.py:1042 ms3.2%
StaticFile.__init__whitenoise/responders.py:722 ms3.2%
StaticFile.get_file_statswhitenoise/responders.py:1632 ms3.2%
StaticFile.__init__whitenoise/responders.py:772 ms3.2%
StaticFile.get_alternativeswhitenoise/responders.py:2012 ms3.2%
WhiteNoise.get_static_filewhitenoise/base.py:2125 ms6.3%
WhiteNoise.add_cache_headerswhitenoise/base.py:2335 ms6.3%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1765 ms6.3%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1975 ms6.3%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms3.2%
WhiteNoise.get_static_filewhitenoise/base.py:2112 ms3.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11512 ms15.8%
scantreewhitenoise/base.py:2717 ms9.5%
scantreewhitenoise/base.py:2735 ms6.3%
scantreewhitenoise/base.py:2712 ms3.2%
scantreewhitenoise/base.py:2732 ms3.2%
ClientHandler.__call__django/test/client.py:1867 ms9.5%
BaseHandler.get_responsedjango/core/handlers/base.py:1427 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms9.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3807 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms9.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3807 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms9.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3807 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms9.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1237 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms9.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1457 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms9.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3807 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms9.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3807 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms9.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3807 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms9.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3807 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms9.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3807 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms9.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3807 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms9.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3807 ms9.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms9.5%
BaseHandler._get_responsedjango/core/handlers/base.py:1997 ms9.5%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:637 ms9.5%
remote_follow_starter_packstarter_packs/views.py:1018 starter_pack = get_object_or_404(StarterPack, slug=starter_pack_slug, deleted_at__isnull=True)7 ms9.5%
get_object_or_404django/shortcuts.py:1007 ms9.5%
QuerySet.getdjango/db/models/query.py:7027 ms9.5%
QuerySet.__len__django/db/models/query.py:4217 ms9.5%
QuerySet._fetch_alldjango/db/models/query.py:22627 ms9.5%
ModelIterable.__iter__django/db/models/query.py:1037 ms9.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16257 ms9.5%
CursorWrapper.executedjango/db/backends/utils.py:797 ms9.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms9.5%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1007 ms9.5%
CursorWrapper._executedjango/db/backends/utils.py:1057 ms9.5%
Cursor.executepsycopg/cursor.py:1137 ms9.5%
Connection.waitpsycopg/connection.py:4957 ms9.5%
TestRemoteFollowStarterPack.test_deleted_pack_404starter_packs/tests.py:1289 pack = baker.make("starter_packs.StarterPack", deleted_at=timezone.now())7 ms9.5%
makemodel_bakery/baker.py:1755 ms6.3%
Baker.makemodel_bakery/baker.py:4545 ms6.3%
Baker._makemodel_bakery/baker.py:5292 ms3.2%
Baker.generate_valuemodel_bakery/baker.py:10192 ms3.2%
gen_relatedmodel_bakery/random_gen.py:4542 ms3.2%
makemodel_bakery/baker.py:1752 ms3.2%
Baker.makemodel_bakery/baker.py:4542 ms3.2%
Baker._makemodel_bakery/baker.py:5422 ms3.2%
Baker.instancemodel_bakery/baker.py:6592 ms3.2%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:622 ms3.2%
Model.savedjango/db/models/base.py:9042 ms3.2%
Model.save_basedjango/db/models/base.py:9962 ms3.2%
Model._save_tabledjango/db/models/base.py:11992 ms3.2%
Model._do_insertdjango/db/models/base.py:12512 ms3.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.2%
QuerySet._insertdjango/db/models/query.py:21412 ms3.2%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19362 ms3.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.2%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms3.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.2%
Cursor.executepsycopg/cursor.py:1132 ms3.2%
Connection.waitpsycopg/connection.py:4952 ms3.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.2%
Baker._makemodel_bakery/baker.py:5422 ms3.2%
Baker.instancemodel_bakery/baker.py:6592 ms3.2%
Model.savedjango/db/models/base.py:9042 ms3.2%
Model.save_basedjango/db/models/base.py:9962 ms3.2%
Model._save_tabledjango/db/models/base.py:11992 ms3.2%
Model._do_insertdjango/db/models/base.py:12512 ms3.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.2%
QuerySet._insertdjango/db/models/query.py:21412 ms3.2%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19362 ms3.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.2%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms3.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.2%
Cursor.executepsycopg/cursor.py:1132 ms3.2%
Connection.waitpsycopg/connection.py:4952 ms3.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.2%
nowdjango/utils/timezone.py:2002 ms3.2%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3722 ms3.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms3.2%
TestCase._fixture_teardowndjango/test/testcases.py:14982 ms3.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4952 ms3.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.2%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms3.2%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.2%
Cursor.executepsycopg/cursor.py:1132 ms3.2%
Connection.waitpsycopg/connection.py:4952 ms3.2%
Estimated from 41 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
starter_packs/tests.py:1291
response = self.client.post(url, {"handle": "[email protected]"})
TestRemoteFollowStarterPack.test_deleted_pack_404
· Libraries
|
40 ms |
|
starter_packs/views.py:1018
starter_pack = get_object_or_404(StarterPack, slug=starter_pack_slug, deleted_at__isnull=True)
remote_follow_starter_pack
· Database
|
7 ms |
|
starter_packs/tests.py:1289
pack = baker.make("starter_packs.StarterPack", deleted_at=timezone.now())
TestRemoteFollowStarterPack.test_deleted_pack_404
· Database
|
7 ms |
|
starter_packs/tests.py:1235
cls.starter_pack = baker.make("starter_packs.StarterPack", published_at=timezone.now())
TestRemoteFollowStarterPack.setUpTestData
· Database
|
6 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_TestRemoteFollowStarterPack class | 16 ms |
| _django_setup_unittest class | 0.63 ms |
| _django_db_marker function | 0.05 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_isolate_apps function | 0.04 ms |
| _live_server_helper function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
10 queries · 10 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:1291
|
53 ms |
|
setup setUpClass
django/test/testcases.py:1426
|
16 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
2 ms |
| setup pytest internals | 2 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 9 hours ago | CI github-actions:test | passed | 74 ms | Profile |
| 9 hours ago | CI github-actions:test | passed | 313 ms | Profile |
| 9 hours ago | CI github-actions:test | passed | 215 ms | Profile |
| 14 hours ago | CI github-actions:test | passed | 268 ms | Profile |
| 14 hours ago | CI github-actions:test | passed | 84 ms | Run |