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

TestInvalidIngest::test_ingest_no_token

First seen 2 years, 10 months ago in 9ff0a7e
CI github-actions:test 12 runs
Average
56 ms
median 49 ms
max 156 ms
Phases
Setup 0.68 ms Call 54 ms Teardown 0.80 ms
Categories
Database 3 ms Other (Libraries, Unsampled, pytest) 52 ms

6 database queries per run

Needs 8 KB of memory (max 64 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
call65 ms98.1%
TestInvalidIngest.test_ingest_no_tokenapps/api/tests.py:49 response = self.client.post("/api/v1/ingest/start", content_type="application/json")61 ms92.3%
Client.postdjango/test/client.py:115361 ms92.3%
RequestFactory.postdjango/test/client.py:49961 ms92.3%
RequestFactory.genericdjango/test/client.py:67161 ms92.3%
Client.requestdjango/test/client.py:108261 ms92.3%
ClientHandler.__call__django/test/client.py:17331 ms46.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6231 ms46.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10431 ms46.2%
WhiteNoise.add_fileswhitenoise/base.py:10831 ms46.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12031 ms46.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13131 ms46.2%
WhiteNoise.get_static_filewhitenoise/base.py:20819 ms28.8%
StaticFile.__init__whitenoise/responders.py:7310 ms14.4%
StaticFile.get_headerswhitenoise/responders.py:1764 ms5.8%
formatdate<stdlib>/email/utils.py:2662 ms2.9%
format_datetime<stdlib>/email/utils.py:2842 ms2.9%
StaticFile.get_headerswhitenoise/responders.py:1702 ms2.9%
StaticFile.get_headerswhitenoise/responders.py:1782 ms2.9%
parsedate<stdlib>/email/_parseaddr.py:1852 ms2.9%
parsedate_tz<stdlib>/email/_parseaddr.py:502 ms2.9%
_parsedate_tz<stdlib>/email/_parseaddr.py:1422 ms2.9%
StaticFile.get_headerswhitenoise/responders.py:1772 ms2.9%
StaticFile.__init__whitenoise/responders.py:776 ms8.7%
StaticFile.get_alternativeswhitenoise/responders.py:2012 ms2.9%
StaticFile.get_alternativeswhitenoise/responders.py:2032 ms2.9%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms2.9%
__init____init__:-12 ms2.9%
Headers.__init__<stdlib>/wsgiref/headers.py:442 ms2.9%
StaticFile.__init__whitenoise/responders.py:724 ms5.8%
WhiteNoise.get_static_filewhitenoise/base.py:20310 ms14.4%
WhiteNoise.add_cache_headerswhitenoise/base.py:22410 ms14.4%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1768 ms11.5%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1978 ms11.5%
URLMixin.urldebug_toolbar/panels/staticfiles.py:206 ms8.7%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2054 ms5.8%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1844 ms5.8%
WhiteNoise.get_static_filewhitenoise/base.py:2022 ms2.9%
ClientHandler.__call__django/test/client.py:18631 ms46.2%
BaseHandler.get_responsedjango/core/handlers/base.py:14131 ms46.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5531 ms46.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13031 ms46.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5531 ms46.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30931 ms46.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5531 ms46.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12331 ms46.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5531 ms46.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30931 ms46.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5531 ms46.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30931 ms46.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5531 ms46.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30931 ms46.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5531 ms46.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30931 ms46.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5531 ms46.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30931 ms46.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5531 ms46.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30931 ms46.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5531 ms46.2%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3531 ms46.2%
_should_redirect_accountsallauth/account/middleware.py:6731 ms46.2%
reversedjango/urls/base.py:9831 ms46.2%
URLResolver._reverse_with_prefixdjango/urls/resolvers.py:76031 ms46.2%
URLResolver._populatedjango/urls/resolvers.py:58427 ms40.4%
URLResolver._populatedjango/urls/resolvers.py:5636 ms8.7%
normalizedjango/utils/regex_helper.py:1934 ms5.8%
normalizedjango/utils/regex_helper.py:912 ms2.9%
URLResolver._populatedjango/urls/resolvers.py:5986 ms8.7%
normalizedjango/utils/regex_helper.py:1544 ms5.8%
normalizedjango/utils/regex_helper.py:1032 ms2.9%
URLResolver._populatedjango/urls/resolvers.py:5846 ms8.7%
URLResolver._populatedjango/urls/resolvers.py:5634 ms5.8%
normalizedjango/utils/regex_helper.py:1932 ms2.9%
normalizedjango/utils/regex_helper.py:1852 ms2.9%
URLResolver._populatedjango/urls/resolvers.py:5742 ms2.9%
MultiValueDict.appendlistdjango/utils/datastructures.py:1772 ms2.9%
URLResolver._populatedjango/urls/resolvers.py:5974 ms5.8%
URLResolver.reverse_dictdjango/urls/resolvers.py:6312 ms2.9%
URLResolver._populatedjango/urls/resolvers.py:5594 ms5.8%
LocaleRegexRouteDescriptor.__get__django/urls/resolvers.py:3044 ms5.8%
compile<stdlib>/re/__init__.py:2914 ms5.8%
_compile<stdlib>/re/__init__.py:3524 ms5.8%
compile<stdlib>/re/_compiler.py:7622 ms2.9%
LocaleRegexRouteDescriptor.__get__django/urls/resolvers.py:3042 ms2.9%
compile<stdlib>/re/__init__.py:2912 ms2.9%
_compile<stdlib>/re/__init__.py:3522 ms2.9%
compile<stdlib>/re/_compiler.py:7622 ms2.9%
parse<stdlib>/re/_parser.py:9722 ms2.9%
_parse_sub<stdlib>/re/_parser.py:4592 ms2.9%
_parse<stdlib>/re/_parser.py:8782 ms2.9%
URLResolver._populatedjango/urls/resolvers.py:5592 ms2.9%
URLResolver._populatedjango/urls/resolvers.py:5622 ms2.9%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()4 ms5.8%
TestCase._fixture_teardowndjango/test/testcases.py:14942 ms2.9%
TestCase._should_check_constraintsdjango/test/testcases.py:15032 ms2.9%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4922 ms2.9%
Cursor.executepsycopg/cursor.py:1132 ms2.9%
Connection.waitpsycopg/connection.py:4952 ms2.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.9%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms2.9%
TestCase._rollback_atomicsdjango/test/testcases.py:14052 ms2.9%
Atomic.__exit__django/db/transaction.py:2862 ms2.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.9%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms2.9%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.9%
Estimated from 34 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/api/tests.py:49
response = self.client.post("/api/v1/ingest/start", content_type="application/json")
TestInvalidIngest.test_ingest_no_token · Libraries
61 ms

Fixtures

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

Database

6 queries · 2 ms
No repeated queries.

Biggest pieces of work

call test body
apps/api/tests.py:49
61 ms
call _post_teardown
django/test/testcases.py:1240
4 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 67 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 27 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 50 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 40 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 69 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 35 ms b3fedae main Profile
2 weeks, 4 days ago CI github-actions:test passed 51 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 51 ms 9caa567 main Profile
2 weeks, 6 days ago CI github-actions:test passed 49 ms ec75501 main Profile
3 weeks ago CI github-actions:test passed 156 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 26 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 49 ms 78a4357 main Profile