flakytest.dev anze3db fedidevs
Tests / mastodon_auth/tests.py

MastodonAuthCallbackTests::test_token_response_without_scope_still_logs_in

First seen 3 weeks ago in 0c23747
CI github-actions:test 11 runs
Average
132 ms
median 111 ms
max 221 ms
Phases
Setup 1 ms Call 130 ms Teardown 0.30 ms
Categories
Database 31 ms Other (Mocking, Cache, Unsampled, Libraries, ...) 100 ms

33 database queries per run

Needs 322 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup0.98 ms1.2%
__init____init__:-10.98 ms1.2%
signature<stdlib>/inspect.py:33430.98 ms1.2%
Signature.from_callable<stdlib>/inspect.py:30580.98 ms1.2%
_signature_from_callable<stdlib>/inspect.py:25280.98 ms1.2%
call78 ms98.4%
MastodonAuthCallbackTests.test_token_response_without_scope_still_logs_inmastodon_auth/tests.py:460 response = self.client.get("/mastodon_auth/", {"code": "abc", "state": state})63 ms78.7%
Client.getdjango/test/client.py:113363 ms78.7%
RequestFactory.getdjango/test/client.py:47563 ms78.7%
RequestFactory.genericdjango/test/client.py:67163 ms78.7%
Client.requestdjango/test/client.py:109163 ms78.7%
ClientHandler.__call__django/test/client.py:17363 ms78.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6363 ms78.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10463 ms78.7%
WhiteNoise.add_fileswhitenoise/base.py:10863 ms78.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11539 ms49.2%
scantreewhitenoise/base.py:27131 ms39.4%
scantreewhitenoise/base.py:27131 ms39.4%
scantreewhitenoise/base.py:27116 ms19.7%
scantreewhitenoise/base.py:27016 ms19.7%
scantreewhitenoise/base.py:2698 ms9.8%
scantreewhitenoise/base.py:2718 ms9.8%
scantreewhitenoise/base.py:2698 ms9.8%
scantreewhitenoise/base.py:2698 ms9.8%
scantreewhitenoise/base.py:2738 ms9.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12023 ms29.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13123 ms29.5%
WhiteNoise.get_static_filewhitenoise/base.py:21216 ms19.7%
WhiteNoise.add_cache_headerswhitenoise/base.py:23316 ms19.7%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:17616 ms19.7%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:19716 ms19.7%
URLMixin.urldebug_toolbar/panels/staticfiles.py:208 ms9.8%
WhiteNoise.get_static_filewhitenoise/base.py:2178 ms9.8%
StaticFile.__init__whitenoise/responders.py:728 ms9.8%
StaticFile.get_file_statswhitenoise/responders.py:1618 ms9.8%
__init____init__:-18 ms9.8%
FileEntry.__init__whitenoise/responders.py:2608 ms9.8%
<GC>~8 ms9.8%
MastodonAuthCallbackTests.test_token_response_without_scope_still_logs_inmastodon_auth/tests.py:425 instance = Instance.objects.create(8 ms9.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:878 ms9.8%
QuerySet.createdjango/db/models/query.py:7368 ms9.8%
Model.savedjango/db/models/base.py:9048 ms9.8%
Model.save_basedjango/db/models/base.py:9968 ms9.8%
Model._save_tabledjango/db/models/base.py:11998 ms9.8%
Model._do_insertdjango/db/models/base.py:12518 ms9.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:878 ms9.8%
QuerySet._insertdjango/db/models/query.py:21418 ms9.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19368 ms9.8%
CursorWrapper.executedjango/db/backends/utils.py:798 ms9.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:928 ms9.8%
CursorWrapper._executedjango/db/backends/utils.py:1058 ms9.8%
Cursor.executepsycopg/cursor.py:1138 ms9.8%
Connection.waitpsycopg/connection.py:4958 ms9.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2068 ms9.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2868 ms9.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:788 ms9.8%
Estimated from 11 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

mastodon_auth/tests.py:460
response = self.client.get("/mastodon_auth/", {"code": "abc", "state": state})
MastodonAuthCallbackTests.test_token_response_without_scope_still_logs_in · Mocking
63 ms
mastodon_auth/tests.py:425
instance = Instance.objects.create(
MastodonAuthCallbackTests.test_token_response_without_scope_still_logs_in · Database
8 ms

Fixtures

Exact setup time
_django_clear_site_cache function 0.06 ms
_template_string_if_invalid_marker function 0.05 ms
_dj_autoclear_mailbox function 0.05 ms
_django_db_marker function 0.05 ms
_django_isolate_apps function 0.04 ms
_django_set_urlconf function 0.04 ms
_live_server_helper function 0.04 ms
monkeypatch function 0.02 ms

Database

33 queries · 10 ms
No repeated queries.

Biggest pieces of work

call test body
mastodon_auth/tests.py:425
70 ms
call pytest internals 8 ms
setup __init__
__init__:-1
0.98 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 80 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 64 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 162 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 98 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 75 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 153 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 111 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 74 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 189 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 221 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 221 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 97 ms 0c23747 main Run