flakytest.dev anze3db fedidevs
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
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
Hide pytest frames
setup1 ms2.1%
CallInfo.from_call_pytest/runner.py:3611 ms2.1%
call_and_report.<locals>.<lambda>_pytest/runner.py:2501 ms2.1%
HookCaller.__call__pluggy/_hooks.py:5121 ms2.1%
PluginManager._hookexecpluggy/_manager.py:1201 ms2.1%
_multicallpluggy/_callers.py:1211 ms2.1%
pytest_runtest_setup_pytest/runner.py:1701 ms2.1%
SetupState.setup_pytest/runner.py:5361 ms2.1%
TestCaseFunction.setup_pytest/unittest.py:2481 ms2.1%
Function.setup_pytest/python.py:17101 ms2.1%
TopRequest._fillfixtures_pytest/fixtures.py:8061 ms2.1%
FixtureRequest.getfixturevalue_pytest/fixtures.py:6311 ms2.1%
PluginManager._hookexecpluggy/_manager.py:1201 ms2.1%
_multicallpluggy/_callers.py:951 ms2.1%
call51 ms91.4%
CallInfo.from_call_pytest/runner.py:36151 ms91.4%
call_and_report.<locals>.<lambda>_pytest/runner.py:25051 ms91.4%
HookCaller.__call__pluggy/_hooks.py:51251 ms91.4%
PluginManager._hookexecpluggy/_manager.py:12051 ms91.4%
_multicallpluggy/_callers.py:12151 ms91.4%
pytest_runtest_call_pytest/runner.py:18451 ms91.4%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:61451 ms91.4%
SimpleTestCase.__call__django/test/testcases.py:31451 ms91.4%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36951 ms91.4%
TestCase.__call__<stdlib>/unittest/case.py:74751 ms91.4%
TestCase.run<stdlib>/unittest/case.py:69151 ms91.4%
TestCase._callTestMethod<stdlib>/unittest/case.py:63751 ms91.4%
_patch.decorate_callable.<locals>.patched<stdlib>/unittest/mock.py:143951 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%
CallInfo.from_call_pytest/runner.py:3614 ms6.5%
call_and_report.<locals>.<lambda>_pytest/runner.py:2504 ms6.5%
HookCaller.__call__pluggy/_hooks.py:5124 ms6.5%
PluginManager._hookexecpluggy/_manager.py:1204 ms6.5%
_multicallpluggy/_callers.py:1214 ms6.5%
pytest_runtest_teardown_pytest/runner.py:1994 ms6.5%
SetupState.teardown_exact_pytest/runner.py:5684 ms6.5%
FixtureDef.finish_pytest/fixtures.py:11564 ms6.5%
_teardown_yield_fixture_pytest/fixtures.py:10144 ms6.5%
UnitTestCase._register_unittest_setup_class_fixture.<locals>.unittest_setup_class_fixture_pytest/unittest.py:1694 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 shown .

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 ms
No 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 failures

This test hasn't failed recently.

History

Latest 7 results, oldest first in the strip
When Environment Outcome Duration Commit
8 hours ago CI github-actions:test passed 56 ms d923a46 main Profile
8 hours ago CI github-actions:test passed 176 ms 82997f8 main Profile
9 hours ago CI github-actions:test passed 180 ms 623aa3e main Profile
13 hours ago CI github-actions:test passed 204 ms ab6465a main Profile
14 hours ago CI github-actions:test passed 91 ms 0c23747 main Run
3 months, 3 weeks ago CI github-actions passed 53 ms 69d78ea HEAD Run
3 months, 3 weeks ago CI github-actions passed 73 ms 8fac7b5 main Run