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

ProjectCreatePage::test_not_logged_in

First seen 2 years, 10 months ago in b9e98d9
CI github-actions:test 12 runs
Average
44 ms
median 47 ms
max 59 ms
Phases
Setup 0.71 ms Call 42 ms Teardown 0.70 ms
Categories
Database 16 ms Other (Libraries, Unsampled, pytest) 28 ms

24 database queries per run

Needs 326 KB of memory (max 772 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
setup0.72 ms1.5%
call47 ms97.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()26 ms52.6%
TestCase._fixture_teardowndjango/test/testcases.py:149514 ms28.3%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:48310 ms20.2%
CursorWrapper.executedjango/db/backends/utils.py:7910 ms20.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9210 ms20.2%
CursorWrapper._executedjango/db/backends/utils.py:10310 ms20.2%
Cursor.executepsycopg/cursor.py:11310 ms20.2%
Connection.waitpsycopg/connection.py:49510 ms20.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:20610 ms20.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28610 ms20.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7810 ms20.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4844 ms8.1%
CursorWrapper.executedjango/db/backends/utils.py:794 ms8.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms8.1%
CursorWrapper._executedjango/db/backends/utils.py:1034 ms8.1%
Cursor.executepsycopg/cursor.py:1134 ms8.1%
Connection.waitpsycopg/connection.py:4954 ms8.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms8.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms8.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms8.1%
TestCase._fixture_teardowndjango/test/testcases.py:149712 ms24.3%
TestCase._rollback_atomicsdjango/test/testcases.py:140512 ms24.3%
Atomic.__exit__django/db/transaction.py:28312 ms24.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2612 ms24.3%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:41312 ms24.3%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:37012 ms24.3%
CursorWrapper.executedjango/db/backends/utils.py:7910 ms20.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9210 ms20.2%
CursorWrapper._executedjango/db/backends/utils.py:10310 ms20.2%
Cursor.executepsycopg/cursor.py:11310 ms20.2%
Connection.waitpsycopg/connection.py:49510 ms20.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:20610 ms20.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28610 ms20.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7810 ms20.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.0%
ProjectCreatePage.test_not_logged_inapps/projects/tests.py:223 response = self.client.get("/projects/create/")10 ms20.2%
Client.getdjango/test/client.py:112410 ms20.2%
RequestFactory.getdjango/test/client.py:47510 ms20.2%
RequestFactory.genericdjango/test/client.py:67110 ms20.2%
Client.requestdjango/test/client.py:108210 ms20.2%
ClientHandler.__call__django/test/client.py:17310 ms20.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6210 ms20.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10410 ms20.2%
WhiteNoise.add_fileswhitenoise/base.py:10810 ms20.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1206 ms12.1%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1316 ms12.1%
WhiteNoise.get_static_filewhitenoise/base.py:2086 ms12.1%
StaticFile.__init__whitenoise/responders.py:774 ms8.1%
StaticFile.get_alternativeswhitenoise/responders.py:2004 ms8.1%
StaticFile.__init__whitenoise/responders.py:722 ms4.0%
StaticFile.get_file_statswhitenoise/responders.py:1592 ms4.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms8.1%
scantreewhitenoise/base.py:2624 ms8.1%
scantreewhitenoise/base.py:2624 ms8.1%
scantreewhitenoise/base.py:2622 ms4.0%
scantreewhitenoise/base.py:2622 ms4.0%
scantreewhitenoise/base.py:2642 ms4.0%
scantreewhitenoise/base.py:2642 ms4.0%
ProjectCreatePage.setUpapps/projects/tests.py:219 self.client.force_login(self.user)10 ms20.2%
ClientMixin.force_logindjango/test/client.py:85510 ms20.2%
ClientMixin._logindjango/test/client.py:8764 ms8.1%
ClientMixin.sessiondjango/test/client.py:8124 ms8.1%
SessionStore.savedjango/contrib/sessions/backends/db.py:1214 ms8.1%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms4.0%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1982 ms4.0%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms4.0%
QuerySet.existsdjango/db/models/query.py:13372 ms4.0%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms4.0%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms4.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.0%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms4.0%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms4.0%
Model.savedjango/db/models/base.py:8742 ms4.0%
Model.save_basedjango/db/models/base.py:9662 ms4.0%
Model._save_tabledjango/db/models/base.py:11672 ms4.0%
Model._do_insertdjango/db/models/base.py:12182 ms4.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms4.0%
QuerySet._insertdjango/db/models/query.py:19182 ms4.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms4.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.0%
Cursor.executepsycopg/cursor.py:1132 ms4.0%
Connection.waitpsycopg/connection.py:4952 ms4.0%
ClientMixin._logindjango/test/client.py:8814 ms8.1%
logindjango/contrib/auth/__init__.py:1872 ms4.0%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4372 ms4.0%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1752 ms4.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms4.0%
QuerySet.getdjango/db/models/query.py:6352 ms4.0%
QuerySet.__len__django/db/models/query.py:3722 ms4.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.0%
ModelIterable.__iter__django/db/models/query.py:952 ms4.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.0%
Cursor.executepsycopg/cursor.py:1132 ms4.0%
Connection.waitpsycopg/connection.py:4952 ms4.0%
logindjango/contrib/auth/__init__.py:1972 ms4.0%
Signal.senddjango/dispatch/dispatcher.py:2092 ms4.0%
update_last_logindjango/contrib/auth/models.py:242 ms4.0%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:622 ms4.0%
Model.savedjango/db/models/base.py:8742 ms4.0%
Model.save_basedjango/db/models/base.py:9662 ms4.0%
Model._save_tabledjango/db/models/base.py:11102 ms4.0%
Model._do_updatedjango/db/models/base.py:11882 ms4.0%
QuerySet.filterdjango/db/models/query.py:15422 ms4.0%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms4.0%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms4.0%
Query.add_qdjango/db/models/sql/query.py:16712 ms4.0%
Query._add_qdjango/db/models/sql/query.py:17032 ms4.0%
Query.build_filterdjango/db/models/sql/query.py:15992 ms4.0%
Query.trim_joinsdjango/db/models/sql/query.py:20072 ms4.0%
<GC>~2 ms4.0%
ClientMixin._logindjango/test/client.py:8832 ms4.0%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms4.0%
Atomic.__enter__django/db/transaction.py:2112 ms4.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.0%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms4.0%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms4.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.0%
Cursor.executepsycopg/cursor.py:1132 ms4.0%
Connection.waitpsycopg/connection.py:4952 ms4.0%
ProjectCreatePage.test_not_logged_inapps/projects/tests.py:222 self.client.logout()2 ms4.0%
ClientMixin.logoutdjango/test/client.py:9232 ms4.0%
get_userdjango/contrib/auth/__init__.py:3182 ms4.0%
ModelBackend.get_userdjango/contrib/auth/backends.py:2322 ms4.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms4.0%
QuerySet.getdjango/db/models/query.py:6352 ms4.0%
QuerySet.__len__django/db/models/query.py:3722 ms4.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.0%
ModelIterable.__iter__django/db/models/query.py:952 ms4.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.0%
Cursor.executepsycopg/cursor.py:1132 ms4.0%
Connection.waitpsycopg/connection.py:4952 ms4.0%
Estimated from 25 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:223
response = self.client.get("/projects/create/")
ProjectCreatePage.test_not_logged_in · Libraries
10 ms
apps/projects/tests.py:219
self.client.force_login(self.user)
ProjectCreatePage.setUp · Database
10 ms
apps/projects/tests.py:222
self.client.logout()
ProjectCreatePage.test_not_logged_in · Database
2 ms

Fixtures

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

Database

24 queries · 5 ms
No repeated queries.

Biggest pieces of work

call _post_teardown
django/test/testcases.py:1240
26 ms
call test body
apps/projects/tests.py:223
12 ms
call setUp
apps/projects/tests.py:219
10 ms
setup pytest internals 0.72 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 24 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 49 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 38 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 57 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 27 ms b3fedae main Profile
2 weeks, 4 days ago CI github-actions:test passed 49 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 58 ms 9caa567 main Profile
2 weeks, 6 days ago CI github-actions:test passed 46 ms ec75501 main Profile
3 weeks ago CI github-actions:test passed 59 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 24 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 45 ms 78a4357 main Profile