Tests / starter_packs/tests.py
TestRemoteFollowStarterPack::test_redirects_to_subscribe_url
First seen 1 month, 1 week ago in 0c23747
CI
github-actions:test
13 runs
Average
107 ms
median 79 ms
max 230 ms
max 230 ms
Phases
Setup 5 ms
Call 101 ms
Teardown 0.45 ms
Categories
Database 14 ms
Other (Mocking, Unsampled, pytest, Logging, ...) 93 ms
6 database queries per run
Needs 250 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
call47 ms97.9%
TestRemoteFollowStarterPack.test_redirects_to_subscribe_urlstarter_packs/tests.py:1257 response = self.client.post(self.url, {"handle": "@[email protected]"})45 ms94.6%
Client.postdjango/test/client.py:116245 ms94.6%
RequestFactory.postdjango/test/client.py:49945 ms94.6%
RequestFactory.genericdjango/test/client.py:67145 ms94.6%
Client.requestdjango/test/client.py:109145 ms94.6%
ClientHandler.__call__django/test/client.py:18628 ms58.7%
BaseHandler.get_responsedjango/core/handlers/base.py:14228 ms58.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms58.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms58.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms58.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms58.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms58.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms58.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms58.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12328 ms58.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms58.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14528 ms58.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms58.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38026 ms55.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms55.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38026 ms55.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms55.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38026 ms55.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms55.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38026 ms55.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms55.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38026 ms55.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms52.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms52.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms52.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms52.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms52.2%
BaseHandler._get_responsedjango/core/handlers/base.py:19923 ms49.0%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:6323 ms49.0%
remote_follow_starter_packstarter_packs/views.py:1018 starter_pack = get_object_or_404(StarterPack, slug=starter_pack_slug, deleted_at__isnull=True)23 ms49.0%
get_object_or_404django/shortcuts.py:10023 ms49.0%
QuerySet.getdjango/db/models/query.py:70222 ms45.7%
QuerySet.__len__django/db/models/query.py:42122 ms45.7%
QuerySet._fetch_alldjango/db/models/query.py:226222 ms45.7%
ModelIterable.__iter__django/db/models/query.py:10322 ms45.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162520 ms42.4%
CursorWrapper.executedjango/db/backends/utils.py:7920 ms42.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9220 ms42.4%
CursorWrapper._executedjango/db/backends/utils.py:10519 ms39.2%
Cursor.executepsycopg/cursor.py:11319 ms39.2%
Connection.waitpsycopg/connection.py:49519 ms39.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:20619 ms39.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28619 ms39.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7819 ms39.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16122 ms3.3%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7682 ms3.3%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:892 ms3.3%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:782 ms3.3%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:2652 ms3.3%
SQLCompiler.get_default_columnsdjango/db/models/sql/compiler.py:10312 ms3.3%
QuerySet.getdjango/db/models/query.py:6922 ms3.3%
QuerySet.filterdjango/db/models/query.py:16762 ms3.3%
QuerySet._filter_or_excludedjango/db/models/query.py:16892 ms3.3%
QuerySet._chaindjango/db/models/query.py:22342 ms3.3%
QuerySet._clonedjango/db/models/query.py:22472 ms3.3%
Query.chaindjango/db/models/sql/query.py:4382 ms3.3%
Query.clonedjango/db/models/sql/query.py:4022 ms3.3%
BaseHandler._get_responsedjango/core/handlers/base.py:1832 ms3.3%
BaseHandler.resolve_requestdjango/core/handlers/base.py:3152 ms3.3%
URLResolver.resolvedjango/urls/resolvers.py:6782 ms3.3%
URLPattern.resolvedjango/urls/resolvers.py:4722 ms3.3%
RoutePattern.matchdjango/urls/resolvers.py:3272 ms3.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3792 ms3.3%
SessionMiddleware.process_requestdjango/contrib/sessions/middleware.py:202 ms3.3%
__init____init__:-12 ms3.3%
ClientHandler.__call__django/test/client.py:17317 ms35.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6317 ms35.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10417 ms35.9%
WhiteNoise.add_fileswhitenoise/base.py:10817 ms35.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12011 ms22.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13111 ms22.8%
WhiteNoise.get_static_filewhitenoise/base.py:2178 ms16.3%
StaticFile.__init__whitenoise/responders.py:723 ms6.5%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms3.3%
__init____init__:-12 ms3.3%
FileEntry.__init__whitenoise/responders.py:2632 ms3.3%
FileEntry.stat_regular_filewhitenoise/responders.py:2762 ms3.3%
StaticFile.__init__whitenoise/responders.py:762 ms3.3%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms3.3%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms3.3%
Headers.get<stdlib>/wsgiref/headers.py:1042 ms3.3%
StaticFile.__init__whitenoise/responders.py:772 ms3.3%
StaticFile.get_alternativeswhitenoise/responders.py:1982 ms3.3%
StaticFile.__init__whitenoise/responders.py:732 ms3.3%
StaticFile.get_headerswhitenoise/responders.py:1762 ms3.3%
WhiteNoise.get_static_filewhitenoise/base.py:2122 ms3.3%
WhiteNoise.add_cache_headerswhitenoise/base.py:2332 ms3.3%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms3.3%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms3.3%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms3.3%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2352 ms3.3%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2162 ms3.3%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2072 ms3.3%
urljoin<stdlib>/urllib/parse.py:7052 ms3.3%
_coerce_args<stdlib>/urllib/parse.py:1282 ms3.3%
WhiteNoise.get_static_filewhitenoise/base.py:2112 ms3.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms13.1%
scantreewhitenoise/base.py:2715 ms9.8%
scantreewhitenoise/base.py:2715 ms9.8%
scantreewhitenoise/base.py:2733 ms6.5%
scantreewhitenoise/base.py:2712 ms3.3%
scantreewhitenoise/base.py:2732 ms3.3%
scantreewhitenoise/base.py:2732 ms3.3%
_patch.decoration_helper<stdlib>/unittest/mock.py:1418 arg = exit_stack.enter_context(patching)2 ms3.3%
_BaseExitStack.enter_context<stdlib>/contextlib.py:5842 ms3.3%
_lookup_special<stdlib>/contextlib.py:5392 ms3.3%
getattr_static<stdlib>/inspect.py:17822 ms3.3%
_check_class<stdlib>/inspect.py:17222 ms3.3%
Estimated from 30 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
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
|
23 ms |
|
starter_packs/tests.py:1257
response = self.client.post(self.url, {"handle": "@[email protected]"})
TestRemoteFollowStarterPack.test_redirects_to_subscribe_url
· Mocking
|
22 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.06 ms |
| _template_string_if_invalid_marker function | 0.04 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 |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
6 queries · 1 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:1257
|
45 ms |
|
call decoration_helper
<stdlib>/unittest/mock.py:1418
|
2 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 | 48 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 79 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 147 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 74 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 92 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 110 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 65 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 119 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 78 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 63 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 230 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 79 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 209 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 67 ms | Run |