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

ProfileUploadTest::test_no_token

First seen 3 weeks ago in 78a4357
CI github-actions:test 12 runs
Average
32 ms
median 36 ms
max 46 ms
Phases
Setup 0.70 ms Call 31 ms Teardown 0.17 ms
Categories
Database 3 ms Other (Libraries, Unsampled, pytest) 29 ms

6 database queries per run

Needs 458 KB of memory (max 788 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
call36 ms97.5%
ProfileUploadTest.test_no_tokenapps/api/tests.py:622 response = self.client.post("/api/v1/profile", data=b"{}", content_type="application/json")31 ms83.6%
Client.postdjango/test/client.py:115331 ms83.6%
RequestFactory.postdjango/test/client.py:49931 ms83.6%
RequestFactory.genericdjango/test/client.py:67131 ms83.6%
Client.requestdjango/test/client.py:108231 ms83.6%
ClientHandler.__call__django/test/client.py:17331 ms83.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6231 ms83.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10431 ms83.6%
WhiteNoise.add_fileswhitenoise/base.py:10831 ms83.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12020 ms55.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13120 ms55.7%
WhiteNoise.get_static_filewhitenoise/base.py:20310 ms27.9%
WhiteNoise.add_cache_headerswhitenoise/base.py:22410 ms27.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:17610 ms27.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:19710 ms27.9%
URLMixin.urldebug_toolbar/panels/staticfiles.py:205 ms13.9%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2055 ms13.9%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1865 ms13.9%
WhiteNoise.get_static_filewhitenoise/base.py:20810 ms27.9%
StaticFile.__init__whitenoise/responders.py:725 ms13.9%
StaticFile.get_file_statswhitenoise/responders.py:1615 ms13.9%
__init____init__:-15 ms13.9%
FileEntry.__init__whitenoise/responders.py:2635 ms13.9%
StaticFile.__init__whitenoise/responders.py:775 ms13.9%
StaticFile.get_alternativeswhitenoise/responders.py:2075 ms13.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11510 ms27.9%
scantreewhitenoise/base.py:2625 ms13.9%
scantreewhitenoise/base.py:2645 ms13.9%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()5 ms13.9%
TestCase._fixture_teardowndjango/test/testcases.py:14955 ms13.9%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4845 ms13.9%
CursorWrapper.executedjango/db/backends/utils.py:795 ms13.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms13.9%
CursorWrapper._executedjango/db/backends/utils.py:1035 ms13.9%
Cursor.executepsycopg/cursor.py:1135 ms13.9%
Connection.waitpsycopg/connection.py:4955 ms13.9%
Estimated from 7 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/api/tests.py:622
response = self.client.post("/api/v1/profile", data=b"{}", content_type="application/json")
ProfileUploadTest.test_no_token · Libraries
31 ms

Fixtures

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

Database

6 queries · 2 ms
No repeated queries.

Biggest pieces of work

call test body
apps/api/tests.py:622
31 ms
call _post_teardown
django/test/testcases.py:1240
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 37 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 19 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 29 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 23 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 46 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 38 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 38 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 39 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 21 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 36 ms 78a4357 main Profile