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

ProjectDeletePage::test_not_logged_in

First seen 2 years, 10 months ago in b9e98d9
CI github-actions:test 12 runs
Average
62 ms
median 65 ms
max 88 ms
Phases
Setup 17 ms Call 45 ms Teardown 0.18 ms
Categories
Database 37 ms Other (Libraries, pytest, Deep copies, Serialization, ...) 25 ms

33 database queries per run

Needs 10 KB of memory (max 36 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
setup17 ms24.8%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()10 ms14.1%
TestCase._enter_atomicsdjango/test/testcases.py:139610 ms14.1%
Atomic.__enter__django/db/transaction.py:19810 ms14.1%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45410 ms14.1%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30310 ms14.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms14.1%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27910 ms14.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms14.1%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2568 ms12.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms12.4%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3338 ms12.4%
Connection.connectpsycopg/connection.py:1098 ms12.4%
wait_connpsycopg/waiting.py:1414 ms5.3%
EpollSelector.select<stdlib>/selectors.py:4524 ms5.3%
wait_connpsycopg/waiting.py:1454 ms5.3%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms5.3%
wait_connpsycopg/waiting.py:1361 ms1.8%
BaseConnection._connect_genpsycopg/_connection_base.py:4391 ms1.8%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2581 ms1.8%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4021 ms1.8%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3741 ms1.8%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3571 ms1.8%
Cursor.executepsycopg/cursor.py:1131 ms1.8%
Connection.waitpsycopg/connection.py:4951 ms1.8%
TestCase.setUpClassdjango/test/testcases.py:1439 cls.setUpTestData()6 ms8.8%
ProjectDeletePage.setUpTestDataapps/projects/tests.py:1855 ms7.1%
make_projectapps/projects/testing.py:712 ms3.5%
add_memberapps/projects/testing.py:76 membership, _ = Membership.objects.get_or_create(2 ms3.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.5%
QuerySet.get_or_createdjango/db/models/query.py:9871 ms1.8%
QuerySet.getdjango/db/models/query.py:6351 ms1.8%
QuerySet.__len__django/db/models/query.py:3721 ms1.8%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms1.8%
ModelIterable.__iter__django/db/models/query.py:951 ms1.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms1.8%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.8%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.8%
Cursor.executepsycopg/cursor.py:1131 ms1.8%
Connection.waitpsycopg/connection.py:4951 ms1.8%
QuerySet.get_or_createdjango/db/models/query.py:9941 ms1.8%
QuerySet.createdjango/db/models/query.py:6691 ms1.8%
Model.savedjango/db/models/base.py:8741 ms1.8%
Model.save_basedjango/db/models/base.py:9661 ms1.8%
Model._save_tabledjango/db/models/base.py:11671 ms1.8%
Model._do_insertdjango/db/models/base.py:12181 ms1.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.8%
QuerySet._insertdjango/db/models/query.py:19181 ms1.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19231 ms1.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.8%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3201 ms1.8%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2981 ms1.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.8%
DatabaseWrapper.create_cursordjango/db/backends/postgresql/base.py:4301 ms1.8%
Connection.cursorpsycopg/connection.py:2591 ms1.8%
Cursor.__init__psycopg/cursor.py:471 ms1.8%
BaseCursor.__init__psycopg/_cursor_base.py:731 ms1.8%
<GC>~1 ms1.8%
make_projectapps/projects/testing.py:621 ms1.8%
unique_slugapps/orgs/models.py:46 while slug in reserved or taken.filter(slug=slug).exists():1 ms1.8%
QuerySet.existsdjango/db/models/query.py:13371 ms1.8%
Query.has_resultsdjango/db/models/sql/query.py:6811 ms1.8%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15921 ms1.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms1.8%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.8%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.8%
Cursor.executepsycopg/cursor.py:1131 ms1.8%
Connection.waitpsycopg/connection.py:4951 ms1.8%
make_projectapps/projects/testing.py:67 slug=unique_slug(name, organization.project_set.all(), fallback="project", reserved=RESERVED_PROJECT_SLUGS),1 ms1.8%
unique_slugapps/orgs/models.py:46 while slug in reserved or taken.filter(slug=slug).exists():1 ms1.8%
QuerySet.existsdjango/db/models/query.py:13371 ms1.8%
ProjectDeletePage.setUpTestDataapps/projects/tests.py:184 cls.user = User.objects.create_user("testuser")1 ms1.8%
UserManager.create_userdjango/contrib/auth/models.py:1751 ms1.8%
UserManager._create_userdjango/contrib/auth/models.py:1631 ms1.8%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:621 ms1.8%
Model.savedjango/db/models/base.py:8741 ms1.8%
Model.save_basedjango/db/models/base.py:9661 ms1.8%
Model._save_tabledjango/db/models/base.py:11671 ms1.8%
Model._do_insertdjango/db/models/base.py:12181 ms1.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.8%
QuerySet._insertdjango/db/models/query.py:19181 ms1.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19251 ms1.8%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.8%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.8%
Cursor.executepsycopg/cursor.py:1131 ms1.8%
Connection.waitpsycopg/connection.py:4951 ms1.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2051 ms1.8%
__init____init__:-11 ms1.8%
signature<stdlib>/inspect.py:33431 ms1.8%
Signature.from_callable<stdlib>/inspect.py:30581 ms1.8%
_signature_from_callable<stdlib>/inspect.py:25281 ms1.8%
call51 ms74.9%
ProjectDeletePage.test_not_logged_inapps/projects/tests.py:193 response = self.client.get(url)37 ms54.9%
Client.getdjango/test/client.py:112437 ms54.9%
RequestFactory.getdjango/test/client.py:47537 ms54.9%
RequestFactory.genericdjango/test/client.py:67134 ms49.9%
Client.requestdjango/test/client.py:108234 ms49.9%
ClientHandler.__call__django/test/client.py:17334 ms49.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6234 ms49.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10434 ms49.9%
WhiteNoise.add_fileswhitenoise/base.py:10834 ms49.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12027 ms39.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13127 ms39.9%
WhiteNoise.get_static_filewhitenoise/base.py:20824 ms34.9%
StaticFile.__init__whitenoise/responders.py:7710 ms15.0%
StaticFile.get_alternativeswhitenoise/responders.py:20010 ms15.0%
__init____init__:-17 ms10.0%
Headers.__init__<stdlib>/wsgiref/headers.py:363 ms5.0%
<GC>~3 ms5.0%
StaticFile.__init__whitenoise/responders.py:737 ms10.0%
StaticFile.get_headerswhitenoise/responders.py:1703 ms5.0%
StaticFile.get_headerswhitenoise/responders.py:1783 ms5.0%
parsedate<stdlib>/email/_parseaddr.py:1853 ms5.0%
parsedate_tz<stdlib>/email/_parseaddr.py:503 ms5.0%
_parsedate_tz<stdlib>/email/_parseaddr.py:1803 ms5.0%
StaticFile.__init__whitenoise/responders.py:723 ms5.0%
StaticFile.get_file_statswhitenoise/responders.py:1593 ms5.0%
StaticFile.__init__whitenoise/responders.py:763 ms5.0%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1893 ms5.0%
Headers.__getitem__<stdlib>/wsgiref/headers.py:833 ms5.0%
Headers.get<stdlib>/wsgiref/headers.py:1043 ms5.0%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:503 ms5.0%
WhiteNoise.get_static_filewhitenoise/base.py:2023 ms5.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1157 ms10.0%
scantreewhitenoise/base.py:2627 ms10.0%
scantreewhitenoise/base.py:2627 ms10.0%
scantreewhitenoise/base.py:2623 ms5.0%
scantreewhitenoise/base.py:2623 ms5.0%
scantreewhitenoise/base.py:2623 ms5.0%
scantreewhitenoise/base.py:2643 ms5.0%
scantreewhitenoise/base.py:2643 ms5.0%
RequestFactory.genericdjango/test/client.py:6493 ms5.0%
ProjectDeletePage.setUpapps/projects/tests.py:188 self.client.force_login(self.user)10 ms15.0%
ClientMixin.force_logindjango/test/client.py:85510 ms15.0%
ClientMixin._logindjango/test/client.py:88110 ms15.0%
logindjango/contrib/auth/__init__.py:1753 ms5.0%
SessionBase.__contains__django/contrib/sessions/backends/base.py:523 ms5.0%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2513 ms5.0%
SessionStore.loaddjango/contrib/sessions/backends/db.py:553 ms5.0%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:343 ms5.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms5.0%
QuerySet.getdjango/db/models/query.py:6253 ms5.0%
QuerySet.filterdjango/db/models/query.py:15423 ms5.0%
QuerySet._filter_or_excludedjango/db/models/query.py:15603 ms5.0%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15703 ms5.0%
Query.add_qdjango/db/models/sql/query.py:16713 ms5.0%
Query._add_qdjango/db/models/sql/query.py:17033 ms5.0%
Query.build_filterdjango/db/models/sql/query.py:15773 ms5.0%
logindjango/contrib/auth/__init__.py:1873 ms5.0%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4343 ms5.0%
SessionStore.createdjango/contrib/sessions/backends/db.py:703 ms5.0%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1983 ms5.0%
SessionStore.existsdjango/contrib/sessions/backends/db.py:633 ms5.0%
QuerySet.existsdjango/db/models/query.py:13373 ms5.0%
Query.has_resultsdjango/db/models/sql/query.py:6813 ms5.0%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15923 ms5.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms5.0%
CursorWrapper.executedjango/db/backends/utils.py:793 ms5.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms5.0%
logindjango/contrib/auth/__init__.py:1973 ms5.0%
Signal.senddjango/dispatch/dispatcher.py:2093 ms5.0%
update_last_logindjango/contrib/auth/models.py:243 ms5.0%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:623 ms5.0%
Model.savedjango/db/models/base.py:8743 ms5.0%
Model.save_basedjango/db/models/base.py:9663 ms5.0%
Model._save_tabledjango/db/models/base.py:11103 ms5.0%
Model._do_updatedjango/db/models/base.py:12113 ms5.0%
QuerySet._updatedjango/db/models/query.py:13273 ms5.0%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21403 ms5.0%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21113 ms5.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms5.0%
CursorWrapper.executedjango/db/backends/utils.py:793 ms5.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms5.0%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms5.0%
Cursor.executepsycopg/cursor.py:1133 ms5.0%
Connection.waitpsycopg/connection.py:4953 ms5.0%
teardown0.24 ms0.4%
Estimated from 30 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:193
response = self.client.get(url)
ProjectDeletePage.test_not_logged_in · Libraries
37 ms
apps/projects/tests.py:188
self.client.force_login(self.user)
ProjectDeletePage.setUp · Database
10 ms
apps/orgs/models.py:46
while slug in reserved or taken.filter(slug=slug).exists():
unique_slug · Database
2 ms
apps/projects/testing.py:76
membership, _ = Membership.objects.get_or_create(
add_member · Database
2 ms
apps/projects/tests.py:184
cls.user = User.objects.create_user("testuser")
ProjectDeletePage.setUpTestData · Database
1 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_ProjectDeletePage class 16 ms
_django_setup_unittest class 0.27 ms
_dj_autoclear_mailbox function 0.06 ms
_template_string_if_invalid_marker function 0.04 ms
_django_db_marker function 0.04 ms
_django_set_urlconf function 0.03 ms
_live_server_helper function 0.03 ms
_django_clear_site_cache function 0.03 ms
monkeypatch function 0.02 ms

Database

33 queries · 13 ms
No repeated queries.

Biggest pieces of work

call test body
apps/projects/tests.py:193
37 ms
setup setUpClass
django/test/testcases.py:1423
16 ms
call setUp
apps/projects/tests.py:188
10 ms
call pytest internals 3 ms
setup __init__
__init__:-1
1 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 68 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 39 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 73 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 61 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 88 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 47 ms b3fedae main Profile
2 weeks, 4 days ago CI github-actions:test passed 66 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 64 ms 9caa567 main Profile
2 weeks, 6 days ago CI github-actions:test passed 64 ms ec75501 main Profile
3 weeks ago CI github-actions:test passed 75 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 37 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 66 ms 78a4357 main Profile