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

MastodonAuthCallbackTests::test_invalid_grant_is_logged_as_warning_not_error

First seen 3 weeks ago in 0c23747
CI github-actions:test 11 runs
Average
116 ms
median 111 ms
max 183 ms
Phases
Setup 2 ms Call 114 ms Teardown 0.43 ms
Categories
Database 7 ms Other (Mocking, Cache, pytest, Imports, ...) 109 ms

8 database queries per run

Needs 47 KB of memory (max 284 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup0.99 ms1.4%
call71 ms98.2%
MastodonAuthCallbackTests.test_invalid_grant_is_logged_as_warning_not_errormastodon_auth/tests.py:632 response = self.client.get("/mastodon_auth/", {"code": "abc", "state": state})59 ms81.8%
Client.getdjango/test/client.py:113359 ms81.8%
RequestFactory.getdjango/test/client.py:47559 ms81.8%
RequestFactory.genericdjango/test/client.py:67159 ms81.8%
Client.requestdjango/test/client.py:109159 ms81.8%
ClientHandler.__call__django/test/client.py:17359 ms81.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6359 ms81.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10459 ms81.8%
WhiteNoise.add_fileswhitenoise/base.py:10859 ms81.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11530 ms40.9%
scantreewhitenoise/base.py:27118 ms24.5%
scantreewhitenoise/base.py:27112 ms16.4%
scantreewhitenoise/base.py:2716 ms8.2%
scantreewhitenoise/base.py:2716 ms8.2%
scantreewhitenoise/base.py:2716 ms8.2%
scantreewhitenoise/base.py:2736 ms8.2%
scantreewhitenoise/base.py:2736 ms8.2%
scantreewhitenoise/base.py:2736 ms8.2%
scantreewhitenoise/base.py:27312 ms16.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12030 ms40.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13130 ms40.9%
WhiteNoise.get_static_filewhitenoise/base.py:21218 ms24.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:23318 ms24.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:17618 ms24.5%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1976 ms8.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:206 ms8.2%
WhiteNoise.get_static_filewhitenoise/base.py:21712 ms16.4%
StaticFile.__init__whitenoise/responders.py:776 ms8.2%
StaticFile.get_alternativeswhitenoise/responders.py:2006 ms8.2%
StaticFile.__init__whitenoise/responders.py:766 ms8.2%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1896 ms8.2%
Headers.__getitem__<stdlib>/wsgiref/headers.py:836 ms8.2%
Headers.get<stdlib>/wsgiref/headers.py:1066 ms8.2%
MastodonAuthCallbackTests.test_invalid_grant_is_logged_as_warning_not_errormastodon_auth/tests.py:631 with self.assertLogs("mastodon_auth.views", level="WARNING") as logs:6 ms8.2%
_find_and_load<frozen importlib._bootstrap>:13536 ms8.2%
_find_and_load_unlocked<frozen importlib._bootstrap>:12496 ms8.2%
_load_unlocked<frozen importlib._bootstrap>:8576 ms8.2%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:7516 ms8.2%
_call_with_frames_removed<frozen importlib._bootstrap>:4916 ms8.2%
<module><stdlib>/unittest/_log.py:76 ms8.2%
namedtuple<stdlib>/collections/__init__.py:3616 ms8.2%
<GC>~6 ms8.2%
Estimated from 13 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

mastodon_auth/tests.py:632
response = self.client.get("/mastodon_auth/", {"code": "abc", "state": state})
MastodonAuthCallbackTests.test_invalid_grant_is_logged_as_warning_not_error · Mocking
59 ms
mastodon_auth/tests.py:631
with self.assertLogs("mastodon_auth.views", level="WARNING") as logs:
MastodonAuthCallbackTests.test_invalid_grant_is_logged_as_warning_not_error · Imports
6 ms

Fixtures

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

Database

8 queries · 4 ms
No repeated queries.

Biggest pieces of work

call test body
mastodon_auth/tests.py:632
65 ms
call pytest internals 6 ms
setup pytest internals 0.99 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 72 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 44 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 111 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 108 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 119 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 77 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 70 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 146 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 169 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 182 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 183 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 134 ms 0c23747 main Run