flakytest.dev anze3db flakytest
Tests / apps/api/tests.py

ProfileUploadTest::test_get_not_allowed

First seen 3 weeks ago in 78a4357
CI github-actions:test 12 runs
Average
33 ms
median 36 ms
max 49 ms
Phases
Setup 0.68 ms Call 32 ms Teardown 0.16 ms
Categories
Database 4 ms Other (Libraries, Unsampled, pytest, Cache) 29 ms

5 database queries per run

Needs 35 KB of memory (max 364 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
call49 ms98.5%
ProfileUploadTest.test_get_not_allowedapps/api/tests.py:626 response = self.client.get("/api/v1/profile", headers={"Authorization": self.secret_token})44 ms88.6%
Client.getdjango/test/client.py:112444 ms88.6%
RequestFactory.getdjango/test/client.py:47544 ms88.6%
RequestFactory.genericdjango/test/client.py:67144 ms88.6%
Client.requestdjango/test/client.py:108244 ms88.6%
ClientHandler.__call__django/test/client.py:17344 ms88.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6244 ms88.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10444 ms88.6%
WhiteNoise.add_fileswhitenoise/base.py:10844 ms88.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12039 ms78.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13139 ms78.8%
WhiteNoise.get_static_filewhitenoise/base.py:20834 ms68.9%
StaticFile.__init__whitenoise/responders.py:7315 ms29.5%
StaticFile.get_headerswhitenoise/responders.py:17610 ms19.7%
formatdate<stdlib>/email/utils.py:26610 ms19.7%
format_datetime<stdlib>/email/utils.py:2845 ms9.8%
StaticFile.get_headerswhitenoise/responders.py:1675 ms9.8%
StaticFile.__init__whitenoise/responders.py:7710 ms19.7%
StaticFile.get_alternativeswhitenoise/responders.py:20010 ms19.7%
__init____init__:-15 ms9.8%
Headers.__init__<stdlib>/wsgiref/headers.py:445 ms9.8%
StaticFile.__init__whitenoise/responders.py:765 ms9.8%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1885 ms9.8%
Headers.__contains__<stdlib>/wsgiref/headers.py:875 ms9.8%
Headers.get<stdlib>/wsgiref/headers.py:1045 ms9.8%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:505 ms9.8%
WhiteNoise.get_static_filewhitenoise/base.py:2035 ms9.8%
WhiteNoise.add_cache_headerswhitenoise/base.py:2245 ms9.8%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1765 ms9.8%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1975 ms9.8%
URLMixin.urldebug_toolbar/panels/staticfiles.py:205 ms9.8%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2055 ms9.8%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1775 ms9.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms9.8%
scantreewhitenoise/base.py:2625 ms9.8%
scantreewhitenoise/base.py:2625 ms9.8%
scantreewhitenoise/base.py:2605 ms9.8%
Estimated from 10 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/api/tests.py:626
response = self.client.get("/api/v1/profile", headers={"Authorization": self.secret_token})
ProfileUploadTest.test_get_not_allowed · Libraries
44 ms

Fixtures

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

Database

5 queries · 1 ms
No repeated queries.

Biggest pieces of work

call test body
apps/api/tests.py:626
44 ms
call pytest internals 5 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
16 hours ago CI github-actions:test passed 49 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 16 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 27 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 28 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 41 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 22 ms b3fedae main Profile
2 weeks, 4 days ago CI github-actions:test passed 36 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 36 ms 9caa567 main Profile
2 weeks, 6 days ago CI github-actions:test passed 36 ms ec75501 main Profile
3 weeks ago CI github-actions:test passed 37 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 22 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 39 ms 78a4357 main Profile