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

ProfileUploadTest::test_get_not_allowed

First seen 9 hours ago in 78a4357
CI github-actions:test 5 runs
Average
34 ms
median 36 ms
max 39 ms
Phases
Setup 0.74 ms Call 33 ms Teardown 0.18 ms
Categories
Database 3 ms Other (Libraries, Unsampled, pytest) 31 ms

5 database queries per run

Needs 81 KB of memory (max 364 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 hours ago · open run
Hide pytest frames
setup0.88 ms2.4%
CallInfo.from_call_pytest/runner.py:3530.88 ms2.4%
call_and_report.<locals>.<lambda>_pytest/runner.py:2450.88 ms2.4%
HookCaller.__call__pluggy/_hooks.py:5120.88 ms2.4%
PluginManager._hookexecpluggy/_manager.py:1200.88 ms2.4%
_multicallpluggy/_callers.py:1210.88 ms2.4%
pytest_runtest_setup_pytest/runner.py:1650.88 ms2.4%
SetupState.setup_pytest/runner.py:5230.88 ms2.4%
TestCaseFunction.setup_pytest/unittest.py:2270.88 ms2.4%
Function.setup_pytest/python.py:17230.88 ms2.4%
TopRequest._fillfixtures_pytest/fixtures.py:7070.88 ms2.4%
FixtureRequest.getfixturevalue_pytest/fixtures.py:5390.88 ms2.4%
FixtureRequest._get_active_fixturedef_pytest/fixtures.py:6150.88 ms2.4%
FixtureRequest._check_fixturedef_without_param_pytest/fixtures.py:6370.88 ms2.4%
call35 ms97.0%
CallInfo.from_call_pytest/runner.py:35335 ms97.0%
call_and_report.<locals>.<lambda>_pytest/runner.py:24535 ms97.0%
HookCaller.__call__pluggy/_hooks.py:51235 ms97.0%
PluginManager._hookexecpluggy/_manager.py:12035 ms97.0%
_multicallpluggy/_callers.py:12135 ms97.0%
pytest_runtest_call_pytest/runner.py:17935 ms97.0%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:57335 ms97.0%
SimpleTestCase.__call__django/test/testcases.py:31335 ms97.0%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36833 ms90.5%
TestCase.__call__<stdlib>/unittest/case.py:74733 ms90.5%
TestCase.run<stdlib>/unittest/case.py:69133 ms90.5%
TestCase._callTestMethod<stdlib>/unittest/case.py:63733 ms90.5%
ProfileUploadTest.test_get_not_allowedapps/api/tests.py:626 response = self.client.get("/api/v1/profile", headers={"Authorization": self.secret_token})33 ms90.5%
Client.getdjango/test/client.py:112433 ms90.5%
RequestFactory.getdjango/test/client.py:47533 ms90.5%
RequestFactory.genericdjango/test/client.py:67133 ms90.5%
Client.requestdjango/test/client.py:108233 ms90.5%
ClientHandler.__call__django/test/client.py:17333 ms90.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6231 ms84.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10431 ms84.1%
WhiteNoise.add_fileswhitenoise/base.py:10831 ms84.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12024 ms64.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13124 ms64.7%
WhiteNoise.get_static_filewhitenoise/base.py:20814 ms38.8%
StaticFile.__init__whitenoise/responders.py:747 ms19.4%
parsedate<stdlib>/email/_parseaddr.py:1857 ms19.4%
StaticFile.__init__whitenoise/responders.py:725 ms12.9%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms6.5%
__init____init__:-12 ms6.5%
FileEntry.__init__whitenoise/responders.py:2632 ms6.5%
FileEntry.stat_regular_filewhitenoise/responders.py:2762 ms6.5%
<GC>~2 ms6.5%
StaticFile.__init__whitenoise/responders.py:732 ms6.5%
StaticFile.get_headerswhitenoise/responders.py:1802 ms6.5%
WhiteNoise.get_static_filewhitenoise/base.py:2039 ms25.9%
WhiteNoise.add_cache_headerswhitenoise/base.py:2249 ms25.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1767 ms19.4%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1977 ms19.4%
URLMixin.urldebug_toolbar/panels/staticfiles.py:205 ms12.9%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2055 ms12.9%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1862 ms6.5%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2122 ms6.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms12.9%
scantreewhitenoise/base.py:2625 ms12.9%
scantreewhitenoise/base.py:2625 ms12.9%
scantreewhitenoise/base.py:2622 ms6.5%
scantreewhitenoise/base.py:2622 ms6.5%
scantreewhitenoise/base.py:2602 ms6.5%
scantreewhitenoise/base.py:2642 ms6.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:962 ms6.5%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3712 ms6.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms6.5%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms6.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4842 ms6.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms6.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms6.5%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms6.5%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms6.5%
Cursor.executepsycopg/cursor.py:1132 ms6.5%
Connection.waitpsycopg/connection.py:4952 ms6.5%
Estimated from 16 samples; phase durations are exact. Frames from pytest and pluggy are shown .

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
33 ms

Fixtures

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

Database

5 queries · 1 ms
No repeated queries.

Biggest pieces of work

call test body
apps/api/tests.py:626
33 ms
call _post_teardown
django/test/testcases.py:1240
2 ms
setup pytest internals 0.88 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 5 results, oldest first in the strip
When Environment Outcome Duration Commit
2 hours ago CI github-actions:test passed 36 ms 9caa567 main Profile
2 hours ago CI github-actions:test passed 36 ms ec75501 main Profile
9 hours ago CI github-actions:test passed 37 ms d2c12e5 main Profile
9 hours ago CI github-actions:test passed 22 ms 0b902f6 main Profile
9 hours ago CI github-actions:test passed 39 ms 78a4357 main Profile