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

ProjectCreatePage::test_not_logged_in

First seen 2 years, 9 months ago in b9e98d9
CI github-actions:test 5 runs
Average
46 ms
median 46 ms
max 59 ms
Phases
Setup 0.81 ms Call 45 ms Teardown 0.76 ms
Categories
Database 11 ms Other (Libraries, Unsampled) 36 ms

24 database queries per run

Needs 10 KB of memory (max 40 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 45 minutes ago · open run
Show pytest frames
call56 ms96.2%
ProjectCreatePage.test_not_logged_inapps/projects/tests.py:222 response = self.client.get("/projects/create/")40 ms67.9%
Client.getdjango/test/client.py:112440 ms67.9%
RequestFactory.getdjango/test/client.py:47540 ms67.9%
RequestFactory.genericdjango/test/client.py:67140 ms67.9%
Client.requestdjango/test/client.py:108240 ms67.9%
ClientHandler.__call__django/test/client.py:17320 ms34.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6220 ms34.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10416 ms28.3%
WhiteNoise.add_fileswhitenoise/base.py:10816 ms28.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12015 ms25.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13115 ms25.5%
WhiteNoise.get_static_filewhitenoise/base.py:20812 ms19.8%
StaticFile.__init__whitenoise/responders.py:735 ms8.5%
StaticFile.get_headerswhitenoise/responders.py:1673 ms5.7%
__init____init__:-12 ms2.8%
Headers.__init__<stdlib>/wsgiref/headers.py:442 ms2.8%
StaticFile.get_headerswhitenoise/responders.py:1762 ms2.8%
formatdate<stdlib>/email/utils.py:2662 ms2.8%
format_datetime<stdlib>/email/utils.py:2842 ms2.8%
StaticFile.__init__whitenoise/responders.py:743 ms5.7%
parsedate<stdlib>/email/_parseaddr.py:1853 ms5.7%
StaticFile.__init__whitenoise/responders.py:773 ms5.7%
StaticFile.get_alternativeswhitenoise/responders.py:2012 ms2.8%
Headers.__setitem__<stdlib>/wsgiref/headers.py:622 ms2.8%
Headers.__delitem__<stdlib>/wsgiref/headers.py:722 ms2.8%
<GC>~2 ms2.8%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms2.8%
__init____init__:-12 ms2.8%
WhiteNoise.get_static_filewhitenoise/base.py:2033 ms5.7%
WhiteNoise.add_cache_headerswhitenoise/base.py:2243 ms5.7%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1763 ms5.7%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1973 ms5.7%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms5.7%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms2.8%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1842 ms2.8%
ManifestFilesMixin.stored_namedjango/contrib/staticfiles/storage.py:5342 ms2.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms2.8%
scantreewhitenoise/base.py:2622 ms2.8%
scantreewhitenoise/base.py:2622 ms2.8%
scantreewhitenoise/base.py:2642 ms2.8%
<GC>~2 ms2.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:953 ms5.7%
urlparse<stdlib>/urllib/parse.py:4792 ms2.8%
WhiteNoise.add_fileswhitenoise/base.py:1082 ms2.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms2.8%
scantreewhitenoise/base.py:2622 ms2.8%
scantreewhitenoise/base.py:2622 ms2.8%
scantreewhitenoise/base.py:2602 ms2.8%
ClientHandler.__call__django/test/client.py:18618 ms31.1%
BaseHandler.get_responsedjango/core/handlers/base.py:14118 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms31.1%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13018 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms31.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms31.1%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12318 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms31.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms31.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms31.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms31.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms31.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms31.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms31.1%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3418 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms31.1%
BaseHandler._get_responsedjango/core/handlers/base.py:18218 ms31.1%
BaseHandler.resolve_requestdjango/core/handlers/base.py:31418 ms31.1%
URLResolver.resolvedjango/urls/resolvers.py:67818 ms31.1%
URLResolver.resolvedjango/urls/resolvers.py:67318 ms31.1%
RoutePattern.matchdjango/urls/resolvers.py:34418 ms31.1%
ClientHandler.__call__django/test/client.py:2082 ms2.8%
Signal.connectdjango/dispatch/dispatcher.py:932 ms2.8%
ProjectCreatePage.setUpapps/projects/tests.py:218 self.client.force_login(self.user)8 ms14.1%
ClientMixin.force_logindjango/test/client.py:8558 ms14.1%
ClientMixin._logindjango/test/client.py:8763 ms5.7%
ClientMixin.sessiondjango/test/client.py:8123 ms5.7%
SessionStore.savedjango/contrib/sessions/backends/db.py:1213 ms5.7%
SessionStore.createdjango/contrib/sessions/backends/db.py:743 ms5.7%
SessionStore.savedjango/contrib/sessions/backends/db.py:1232 ms2.8%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1032 ms2.8%
SessionBase.get_expiry_datedjango/contrib/sessions/backends/base.py:3302 ms2.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms2.8%
Atomic.__exit__django/db/transaction.py:2472 ms2.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.8%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms2.8%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.8%
Cursor.executepsycopg/cursor.py:1132 ms2.8%
Connection.waitpsycopg/connection.py:4952 ms2.8%
ClientMixin._logindjango/test/client.py:8813 ms5.7%
logindjango/contrib/auth/__init__.py:1873 ms5.7%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4342 ms2.8%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms2.8%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1982 ms2.8%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms2.8%
QuerySet.existsdjango/db/models/query.py:13372 ms2.8%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms2.8%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms2.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.8%
Cursor.executepsycopg/cursor.py:1132 ms2.8%
Connection.waitpsycopg/connection.py:4952 ms2.8%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4372 ms2.8%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1752 ms2.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.8%
QuerySet.getdjango/db/models/query.py:6352 ms2.8%
QuerySet.__len__django/db/models/query.py:3722 ms2.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.8%
ModelIterable.__iter__django/db/models/query.py:952 ms2.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.8%
Cursor.executepsycopg/cursor.py:1132 ms2.8%
Connection.waitpsycopg/connection.py:4952 ms2.8%
ClientMixin._logindjango/test/client.py:8832 ms2.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms2.8%
Model.savedjango/db/models/base.py:8742 ms2.8%
Model.save_basedjango/db/models/base.py:9662 ms2.8%
Model._save_tabledjango/db/models/base.py:11102 ms2.8%
Model._do_updatedjango/db/models/base.py:11882 ms2.8%
QuerySet.filterdjango/db/models/query.py:15422 ms2.8%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms2.8%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms2.8%
Query.add_qdjango/db/models/sql/query.py:16712 ms2.8%
ProjectCreatePage.test_not_logged_inapps/projects/tests.py:221 self.client.logout()3 ms5.7%
ClientMixin.logoutdjango/test/client.py:9233 ms5.7%
get_userdjango/contrib/auth/__init__.py:3112 ms2.8%
_get_user_session_keydjango/contrib/auth/__init__.py:952 ms2.8%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:552 ms2.8%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2512 ms2.8%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms2.8%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms2.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.8%
QuerySet.getdjango/db/models/query.py:6252 ms2.8%
QuerySet.filterdjango/db/models/query.py:15422 ms2.8%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms2.8%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms2.8%
Query.add_qdjango/db/models/sql/query.py:16712 ms2.8%
Query._add_qdjango/db/models/sql/query.py:17032 ms2.8%
get_userdjango/contrib/auth/__init__.py:3182 ms2.8%
ModelBackend.get_userdjango/contrib/auth/backends.py:2322 ms2.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.8%
QuerySet.getdjango/db/models/query.py:6352 ms2.8%
QuerySet.__len__django/db/models/query.py:3722 ms2.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.8%
ModelIterable.__iter__django/db/models/query.py:952 ms2.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.8%
Cursor.executepsycopg/cursor.py:1132 ms2.8%
Connection.waitpsycopg/connection.py:4952 ms2.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms5.7%
TestCase._fixture_teardowndjango/test/testcases.py:14942 ms2.8%
TestCase._should_check_constraintsdjango/test/testcases.py:15032 ms2.8%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4922 ms2.8%
Cursor.executepsycopg/cursor.py:1132 ms2.8%
Connection.waitpsycopg/connection.py:4952 ms2.8%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms2.8%
TestCase._rollback_atomicsdjango/test/testcases.py:14052 ms2.8%
Atomic.__exit__django/db/transaction.py:2862 ms2.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.8%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms2.8%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.8%
Cursor.executepsycopg/cursor.py:1132 ms2.8%
Connection.waitpsycopg/connection.py:4952 ms2.8%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()2 ms2.8%
TestCase._fixture_setupdjango/test/testcases.py:14782 ms2.8%
TestCase._enter_atomicsdjango/test/testcases.py:13962 ms2.8%
Atomic.__enter__django/db/transaction.py:2112 ms2.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.8%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms2.8%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.8%
Cursor.executepsycopg/cursor.py:1132 ms2.8%
Connection.waitpsycopg/connection.py:4952 ms2.8%
teardown1 ms2.3%
TestCase.tearDownClassdjango/test/testcases.py:1453 cls._rollback_atomics(cls.cls_atomics)1 ms2.3%
TestCase._rollback_atomicsdjango/test/testcases.py:14051 ms2.3%
Atomic.__exit__django/db/transaction.py:2951 ms2.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms2.3%
BaseDatabaseWrapper.rollbackdjango/db/backends/base/base.py:3371 ms2.3%
BaseDatabaseWrapper._rollbackdjango/db/backends/base/base.py:3081 ms2.3%
Connection.rollbackpsycopg/connection.py:3141 ms2.3%
Connection.waitpsycopg/connection.py:4951 ms2.3%
Estimated from 35 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:222
response = self.client.get("/projects/create/")
ProjectCreatePage.test_not_logged_in · Libraries
40 ms
apps/projects/tests.py:218
self.client.force_login(self.user)
ProjectCreatePage.setUp · Database
8 ms
apps/projects/tests.py:221
self.client.logout()
ProjectCreatePage.test_not_logged_in · Database
3 ms

Fixtures

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

Database

24 queries · 7 ms
No repeated queries.

Biggest pieces of work

call test body
apps/projects/tests.py:222
43 ms
call setUp
apps/projects/tests.py:218
8 ms
call _post_teardown
django/test/testcases.py:1240
3 ms
call _pre_setup
django/test/testcases.py:1164
2 ms
teardown tearDownClass
django/test/testcases.py:1453
1 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 50 results, oldest first in the strip
When Environment Outcome Duration Commit
45 minutes ago CI github-actions:test passed 58 ms 9caa567 main Profile
an hour ago CI github-actions:test passed 46 ms ec75501 main Profile
7 hours ago CI github-actions:test passed 59 ms d2c12e5 main Profile
8 hours ago CI github-actions:test passed 24 ms 0b902f6 main Profile
8 hours ago CI github-actions:test passed 45 ms 78a4357 main Profile
2 years ago CI github-actions passed 94 ms 61209a6 main Run
2 years, 2 months ago CI github-actions passed 91 ms 55ca4c2 main Run
2 years, 3 months ago CI github-actions passed 97 ms d007c85 main Run
2 years, 4 months ago CI github-actions passed 100 ms 3d86013 main Run
2 years, 4 months ago CI github-actions passed 99 ms bed0acb main Run
2 years, 4 months ago CI github-actions passed 100 ms 78c1737 main Run
2 years, 4 months ago CI github-actions passed 94 ms 1a5664b main Run
2 years, 5 months ago CI github-actions passed 123 ms c3680ac main Run
2 years, 5 months ago CI github-actions passed 91 ms 06a1df4 main Run
2 years, 5 months ago CI github-actions passed 92 ms a29c34e main Run
2 years, 5 months ago CI github-actions passed 90 ms e55e63f main Run
2 years, 5 months ago CI github-actions passed 91 ms ba5cb67 main Run
2 years, 6 months ago CI github-actions passed 92 ms 7c123d8 main Run
2 years, 6 months ago CI github-actions passed 90 ms 5ae45e1 main Run
2 years, 6 months ago CI github-actions passed 90 ms 1680367 main Run