Tests / mastodon_auth/tests.py
MastodonLoginViewTests::test_pleroma_login_forces_consent_flow
First seen 3 months, 3 weeks ago in 8fac7b5
CI
github-actions:test
4 runs
Average
154 ms
median 178 ms
max 204 ms
max 204 ms
Phases
Setup 1 ms
Call 150 ms
Teardown 3 ms
Categories
Database 16 ms
Other (Mocking, pytest, Cache, Logging, ...) 138 ms
9 database queries per run
Needs 444 KB of memory (max 632 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 8 hours ago ·
open run
setup1 ms2.1%
call51 ms91.4%
MastodonLoginViewTests.test_pleroma_login_forces_consent_flowmastodon_auth/tests.py:177 pleroma = self.client.post("/mastodon_login/", {"instance": "pleroma.example"})42 ms74.3%
Client.postdjango/test/client.py:116242 ms74.3%
RequestFactory.postdjango/test/client.py:49942 ms74.3%
RequestFactory.genericdjango/test/client.py:67142 ms74.3%
Client.requestdjango/test/client.py:109142 ms74.3%
ClientHandler.__call__django/test/client.py:17338 ms68.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6338 ms68.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10438 ms68.5%
WhiteNoise.add_fileswhitenoise/base.py:10838 ms68.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11516 ms28.6%
scantreewhitenoise/base.py:27116 ms28.6%
scantreewhitenoise/base.py:27113 ms22.8%
scantreewhitenoise/base.py:2736 ms11.4%
scantreewhitenoise/base.py:2693 ms5.7%
scantreewhitenoise/base.py:2713 ms5.7%
scantreewhitenoise/base.py:2713 ms5.7%
scantreewhitenoise/base.py:2713 ms5.7%
scantreewhitenoise/base.py:2693 ms5.7%
scantreewhitenoise/base.py:2733 ms5.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12016 ms28.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13116 ms28.6%
WhiteNoise.get_static_filewhitenoise/base.py:21710 ms17.1%
StaticFile.__init__whitenoise/responders.py:736 ms11.4%
StaticFile.get_headerswhitenoise/responders.py:1783 ms5.7%
parsedate<stdlib>/email/_parseaddr.py:1853 ms5.7%
parsedate_tz<stdlib>/email/_parseaddr.py:503 ms5.7%
StaticFile.__init__whitenoise/responders.py:723 ms5.7%
StaticFile.get_file_statswhitenoise/responders.py:1613 ms5.7%
__init____init__:-13 ms5.7%
FileEntry.__init__whitenoise/responders.py:2633 ms5.7%
FileEntry.stat_regular_filewhitenoise/responders.py:2763 ms5.7%
<GC>~3 ms5.7%
WhiteNoise.get_static_filewhitenoise/base.py:2123 ms5.7%
WhiteNoise.add_cache_headerswhitenoise/base.py:2333 ms5.7%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1763 ms5.7%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1973 ms5.7%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms5.7%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2353 ms5.7%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2143 ms5.7%
WhiteNoise.get_static_filewhitenoise/base.py:2113 ms5.7%
ClientHandler.__call__django/test/client.py:1763 ms5.7%
Signal.senddjango/dispatch/dispatcher.py:2493 ms5.7%
reset_queriesdjango/db/__init__.py:483 ms5.7%
BaseConnectionHandler.alldjango/utils/connection.py:773 ms5.7%
BaseConnectionHandler.__getitem__django/utils/connection.py:583 ms5.7%
MastodonLoginViewTests.test_pleroma_login_forces_consent_flowmastodon_auth/tests.py:17810 ms17.1%
Client.postdjango/test/client.py:116210 ms17.1%
RequestFactory.postdjango/test/client.py:49910 ms17.1%
RequestFactory.genericdjango/test/client.py:67110 ms17.1%
Client.requestdjango/test/client.py:109110 ms17.1%
ClientHandler.__call__django/test/client.py:18610 ms17.1%
BaseHandler.get_responsedjango/core/handlers/base.py:14210 ms17.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms17.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms17.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms17.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms17.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms17.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms17.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms17.1%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12310 ms17.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms17.1%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14510 ms17.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms17.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms17.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms17.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms17.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms17.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms17.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms17.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms17.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms17.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms17.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms17.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms17.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms17.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms17.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms17.1%
BaseHandler._get_responsedjango/core/handlers/base.py:19910 ms17.1%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:6310 ms17.1%
loginmastodon_auth/views.py:59 form = MastodonLoginForm(request.POST)6 ms11.4%
WSGIRequest._get_postdjango/core/handlers/wsgi.py:913 ms5.7%
BaseForm.__init__django/forms/forms.py:1063 ms5.7%
deepcopy<stdlib>/copy.py:1313 ms5.7%
_deepcopy_dict<stdlib>/copy.py:2023 ms5.7%
loginmastodon_auth/views.py:83 instance = Instance.objects.filter(url=api_base_url).first()3 ms5.7%
QuerySet.firstdjango/db/models/query.py:12123 ms5.7%
QuerySet.__iter__django/db/models/query.py:4393 ms5.7%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms5.7%
ModelIterable.__iter__django/db/models/query.py:993 ms5.7%
teardown4 ms6.5%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()4 ms6.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms6.5%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3554 ms6.5%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4084 ms6.5%
Connection.closepsycopg/connection.py:2014 ms6.5%
Estimated from 19 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
mastodon_auth/tests.py:177
pleroma = self.client.post("/mastodon_login/", {"instance": "pleroma.example"})
MastodonLoginViewTests.test_pleroma_login_forces_consent_flow
· Mocking
|
42 ms |
|
mastodon_auth/views.py:59
form = MastodonLoginForm(request.POST)
login
· Mocking
|
6 ms |
|
mastodon_auth/views.py:83
instance = Instance.objects.filter(url=api_base_url).first()
login
· Database
|
3 ms |
Fixtures
Exact setup time| _django_clear_site_cache function | 0.33 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_db_marker function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
9 queries · 3 msNo repeated queries.
Biggest pieces of work
|
call test body
mastodon_auth/tests.py:177
|
51 ms |
|
teardown tearDownClass
django/test/testcases.py:1458
|
4 ms |
| setup pytest internals | 1 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 7 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 8 hours ago | CI github-actions:test | passed | 56 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 176 ms | Profile |
| 9 hours ago | CI github-actions:test | passed | 180 ms | Profile |
| 13 hours ago | CI github-actions:test | passed | 204 ms | Profile |
| 14 hours ago | CI github-actions:test | passed | 91 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 53 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 73 ms | Run |