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

ProjectTestsPage::test_not_logged_in

First seen 2 years, 9 months ago in d87c7a8
CI github-actions:test 3 runs
Average
63 ms
median 69 ms
max 78 ms
Phases
Setup 22 ms Call 41 ms Teardown 0.16 ms
Categories
Database 36 ms Other (Libraries, Unsampled) 27 ms

37 database queries per run

Needs 904 KB of memory (max 920 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 6 hours ago · open run
Show pytest frames
setup25 ms32.6%
setUpClassdjango/test/testcases.py:1439 cls.setUpTestData()13 ms16.3%
setUpTestDataapps/projects/tests.py:33210 ms13.0%
make_projectapps/projects/testing.py:628 ms9.8%
unique_slugapps/orgs/models.py:46 while slug in reserved or taken.filter(slug=slug).exists():8 ms9.8%
filterdjango/db/models/query.py:15428 ms9.8%
_filter_or_excludedjango/db/models/query.py:15558 ms9.8%
_chaindjango/db/models/query.py:19738 ms9.8%
_clonedjango/db/models/query.py:19868 ms9.8%
chaindjango/db/models/sql/query.py:4338 ms9.8%
clonedjango/db/models/sql/query.py:3898 ms9.8%
make_projectapps/projects/testing.py:61 organization = Organization.objects.create(3 ms3.3%
manager_methoddjango/db/models/manager.py:873 ms3.3%
createdjango/db/models/query.py:6693 ms3.3%
savedjango/db/models/base.py:8743 ms3.3%
save_basedjango/db/models/base.py:9723 ms3.3%
_save_tabledjango/db/models/base.py:11683 ms3.3%
_do_insertdjango/db/models/base.py:12183 ms3.3%
manager_methoddjango/db/models/manager.py:873 ms3.3%
_insertdjango/db/models/query.py:19183 ms3.3%
execute_sqldjango/db/models/sql/compiler.py:19253 ms3.3%
executedjango/db/backends/utils.py:793 ms3.3%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms3.3%
_executedjango/db/backends/utils.py:1053 ms3.3%
executepsycopg/cursor.py:1143 ms3.3%
waitpsycopg/connection.py:4833 ms3.3%
_execute_genpsycopg/_cursor_base.py:2063 ms3.3%
_maybe_prepare_genpsycopg/_cursor_base.py:2753 ms3.3%
convertpsycopg/_queries.py:2893 ms3.3%
dumppsycopg/_queries.py:2993 ms3.3%
<genexpr>psycopg/_queries.py:3003 ms3.3%
setUpTestDataapps/projects/tests.py:331 cls.user = User.objects.create_user("testuser")3 ms3.3%
create_userdjango/contrib/auth/models.py:1753 ms3.3%
_create_userdjango/contrib/auth/models.py:1633 ms3.3%
savedjango/contrib/auth/base_user.py:623 ms3.3%
savedjango/db/models/base.py:8743 ms3.3%
save_basedjango/db/models/base.py:9723 ms3.3%
_save_tabledjango/db/models/base.py:11683 ms3.3%
_do_insertdjango/db/models/base.py:12183 ms3.3%
manager_methoddjango/db/models/manager.py:873 ms3.3%
_insertdjango/db/models/query.py:19183 ms3.3%
execute_sqldjango/db/models/sql/compiler.py:19253 ms3.3%
executedjango/db/backends/utils.py:793 ms3.3%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms3.3%
_executedjango/db/backends/utils.py:1053 ms3.3%
executepsycopg/cursor.py:1143 ms3.3%
waitpsycopg/connection.py:4833 ms3.3%
_execute_genpsycopg/_cursor_base.py:2043 ms3.3%
_start_querypsycopg/_cursor_base.py:3863 ms3.3%
_start_querypsycopg/_connection_base.py:5463 ms3.3%
_exec_commandpsycopg/_connection_base.py:4753 ms3.3%
setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()13 ms16.3%
_enter_atomicsdjango/test/testcases.py:139613 ms16.3%
__enter__django/db/transaction.py:19813 ms16.3%
get_autocommitdjango/db/backends/base/base.py:45413 ms16.3%
patched_ensure_connectiondjango/test/testcases.py:30313 ms16.3%
innerdjango/utils/asyncio.py:2613 ms16.3%
ensure_connectiondjango/db/backends/base/base.py:27913 ms16.3%
innerdjango/utils/asyncio.py:2613 ms16.3%
connectdjango/db/backends/base/base.py:25610 ms13.0%
innerdjango/utils/asyncio.py:2610 ms13.0%
get_new_connectiondjango/db/backends/postgresql/base.py:33310 ms13.0%
connectpsycopg/connection.py:10910 ms13.0%
wait_connpsycopg/waiting.py:1188 ms9.8%
_connect_genpsycopg/_connection_base.py:4418 ms9.8%
wait_connpsycopg/waiting.py:1123 ms3.3%
select<stdlib>/selectors.py:4523 ms3.3%
connectdjango/db/backends/base/base.py:2583 ms3.3%
init_connection_statedjango/db/backends/postgresql/base.py:4023 ms3.3%
_configure_connectiondjango/db/backends/postgresql/base.py:3743 ms3.3%
_configure_timezonedjango/db/backends/postgresql/base.py:3573 ms3.3%
executepsycopg/cursor.py:1143 ms3.3%
waitpsycopg/connection.py:4833 ms3.3%
call52 ms67.1%
test_not_logged_inapps/projects/tests.py:342 response = self.client.get(self.url)28 ms36.1%
getdjango/test/client.py:112428 ms36.1%
getdjango/test/client.py:47528 ms36.1%
genericdjango/test/client.py:67128 ms36.1%
requestdjango/test/client.py:108228 ms36.1%
__call__django/test/client.py:17320 ms25.8%
load_middlewaredjango/core/handlers/base.py:6220 ms25.8%
__init__whitenoise/middleware.py:10420 ms25.8%
add_fileswhitenoise/base.py:10820 ms25.8%
update_files_dictionarywhitenoise/base.py:12012 ms15.5%
add_file_to_dictionarywhitenoise/base.py:1314 ms5.2%
get_static_filewhitenoise/base.py:2034 ms5.2%
add_mime_headerswhitenoise/base.py:2214 ms5.2%
get_alternativeswhitenoise/responders.py:2014 ms5.2%
items<stdlib>/wsgiref/headers.py:1394 ms5.2%
update_files_dictionarywhitenoise/base.py:1158 ms10.3%
scantreewhitenoise/base.py:2628 ms10.3%
scantreewhitenoise/base.py:2628 ms10.3%
scantreewhitenoise/base.py:2628 ms10.3%
scantreewhitenoise/base.py:2628 ms10.3%
scantreewhitenoise/base.py:2624 ms5.2%
scantreewhitenoise/base.py:2644 ms5.2%
scantreewhitenoise/base.py:2604 ms5.2%
__call__django/test/client.py:1868 ms10.3%
get_responsedjango/core/handlers/base.py:1418 ms10.3%
innerdjango/core/handlers/exception.py:558 ms10.3%
__call__debug_toolbar/middleware.py:1308 ms10.3%
innerdjango/core/handlers/exception.py:558 ms10.3%
__call__django/utils/deprecation.py:3098 ms10.3%
innerdjango/core/handlers/exception.py:558 ms10.3%
__call__whitenoise/middleware.py:1238 ms10.3%
innerdjango/core/handlers/exception.py:558 ms10.3%
__call__django/utils/deprecation.py:3098 ms10.3%
innerdjango/core/handlers/exception.py:558 ms10.3%
__call__django/utils/deprecation.py:3098 ms10.3%
innerdjango/core/handlers/exception.py:558 ms10.3%
__call__django/utils/deprecation.py:3098 ms10.3%
innerdjango/core/handlers/exception.py:558 ms10.3%
__call__django/utils/deprecation.py:3098 ms10.3%
innerdjango/core/handlers/exception.py:558 ms10.3%
__call__django/utils/deprecation.py:3098 ms10.3%
innerdjango/core/handlers/exception.py:558 ms10.3%
__call__django/utils/deprecation.py:3098 ms10.3%
innerdjango/core/handlers/exception.py:558 ms10.3%
middlewareallauth/account/middleware.py:348 ms10.3%
innerdjango/core/handlers/exception.py:558 ms10.3%
_get_responsedjango/core/handlers/base.py:1988 ms10.3%
project_testsapps/projects/urls.py:1778 ms10.3%
find_projectapps/projects/urls.py:49 project = get_object_or_404(8 ms10.3%
get_object_or_404django/shortcuts.py:908 ms10.3%
getdjango/db/models/query.py:6358 ms10.3%
__len__django/db/models/query.py:3728 ms10.3%
_fetch_alldjango/db/models/query.py:20008 ms10.3%
__iter__django/db/models/query.py:958 ms10.3%
execute_sqldjango/db/models/sql/compiler.py:16114 ms5.2%
as_sqldjango/db/models/sql/compiler.py:7674 ms5.2%
pre_sql_setupdjango/db/models/sql/compiler.py:884 ms5.2%
setup_querydjango/db/models/sql/compiler.py:754 ms5.2%
get_selectdjango/db/models/sql/compiler.py:3174 ms5.2%
compiledjango/db/models/sql/compiler.py:5784 ms5.2%
execute_sqldjango/db/models/sql/compiler.py:16244 ms5.2%
executedjango/db/backends/utils.py:794 ms5.2%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms5.2%
_executedjango/db/backends/utils.py:1054 ms5.2%
executepsycopg/cursor.py:1144 ms5.2%
waitpsycopg/connection.py:4834 ms5.2%
setUpapps/projects/tests.py:337 self.client.force_login(self.user)16 ms20.7%
force_logindjango/test/client.py:85516 ms20.7%
_logindjango/test/client.py:8838 ms10.3%
savedjango/contrib/sessions/backends/db.py:1274 ms5.2%
savedjango/db/models/base.py:8744 ms5.2%
save_basedjango/db/models/base.py:9724 ms5.2%
_save_tabledjango/db/models/base.py:11174 ms5.2%
_do_updatedjango/db/models/base.py:12114 ms5.2%
_updatedjango/db/models/query.py:13274 ms5.2%
execute_returning_sqldjango/db/models/sql/compiler.py:21404 ms5.2%
execute_sqldjango/db/models/sql/compiler.py:21114 ms5.2%
execute_sqldjango/db/models/sql/compiler.py:16244 ms5.2%
executedjango/db/backends/utils.py:794 ms5.2%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms5.2%
_executedjango/db/backends/utils.py:1054 ms5.2%
executepsycopg/cursor.py:1144 ms5.2%
waitpsycopg/connection.py:4834 ms5.2%
savedjango/contrib/sessions/backends/db.py:1264 ms5.2%
__enter__django/db/transaction.py:1834 ms5.2%
_logindjango/test/client.py:8814 ms5.2%
logindjango/contrib/auth/__init__.py:1874 ms5.2%
cycle_keydjango/contrib/sessions/backends/base.py:4344 ms5.2%
createdjango/contrib/sessions/backends/db.py:744 ms5.2%
savedjango/contrib/sessions/backends/db.py:1264 ms5.2%
__enter__django/db/transaction.py:2114 ms5.2%
innerdjango/utils/asyncio.py:264 ms5.2%
savepointdjango/db/backends/base/base.py:4004 ms5.2%
_savepointdjango/db/backends/base/base.py:3664 ms5.2%
innerdjango/utils/asyncio.py:264 ms5.2%
_logindjango/test/client.py:8764 ms5.2%
sessiondjango/test/client.py:8124 ms5.2%
savedjango/contrib/sessions/backends/db.py:1214 ms5.2%
createdjango/contrib/sessions/backends/db.py:744 ms5.2%
savedjango/contrib/sessions/backends/db.py:1234 ms5.2%
existsdjango/contrib/sessions/backends/db.py:634 ms5.2%
existsdjango/db/models/query.py:13374 ms5.2%
has_resultsdjango/db/models/sql/query.py:6814 ms5.2%
has_resultsdjango/db/models/sql/compiler.py:15924 ms5.2%
execute_sqldjango/db/models/sql/compiler.py:16244 ms5.2%
executedjango/db/backends/utils.py:794 ms5.2%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms5.2%
_executedjango/db/backends/utils.py:1054 ms5.2%
executepsycopg/cursor.py:1144 ms5.2%
waitpsycopg/connection.py:4834 ms5.2%
_post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()8 ms10.3%
_fixture_teardowndjango/test/testcases.py:14974 ms5.2%
_rollback_atomicsdjango/test/testcases.py:14054 ms5.2%
__exit__django/db/transaction.py:2834 ms5.2%
innerdjango/utils/asyncio.py:264 ms5.2%
savepoint_rollbackdjango/db/backends/base/base.py:4134 ms5.2%
_savepoint_rollbackdjango/db/backends/base/base.py:3714 ms5.2%
executedjango/db/backends/utils.py:794 ms5.2%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms5.2%
_executedjango/db/backends/utils.py:1034 ms5.2%
executepsycopg/cursor.py:1144 ms5.2%
waitpsycopg/connection.py:4834 ms5.2%
_fixture_teardowndjango/test/testcases.py:14954 ms5.2%
check_constraintsdjango/db/backends/postgresql/base.py:4834 ms5.2%
executedjango/db/backends/utils.py:794 ms5.2%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms5.2%
_executedjango/db/backends/utils.py:1034 ms5.2%
executepsycopg/cursor.py:1144 ms5.2%
waitpsycopg/connection.py:4834 ms5.2%
_execute_genpsycopg/_cursor_base.py:2064 ms5.2%
_maybe_prepare_genpsycopg/_cursor_base.py:2864 ms5.2%
_execute_sendpsycopg/client_cursor.py:784 ms5.2%
Estimated from 23 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:342
response = self.client.get(self.url)
test_not_logged_in · Libraries
20 ms
apps/projects/tests.py:337
self.client.force_login(self.user)
setUp · Database
16 ms
apps/projects/urls.py:49
project = get_object_or_404(
find_project · Database
8 ms
apps/orgs/models.py:46
while slug in reserved or taken.filter(slug=slug).exists():
unique_slug · Database
8 ms
apps/projects/tests.py:331
cls.user = User.objects.create_user("testuser")
setUpTestData · Database
3 ms
apps/projects/testing.py:61
organization = Organization.objects.create(
make_project · Database
3 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_ProjectTestsPage class 24 ms
_django_setup_unittest class 0.30 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

37 queries · 17 ms
No repeated queries.

Biggest pieces of work

call test body
apps/projects/tests.py:342
28 ms
setup setUpClass
django/test/testcases.py:1439
25 ms
call setUp
apps/projects/tests.py:337
16 ms
call _post_teardown
django/test/testcases.py:1240
8 ms

Reliability

3 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
6 hours ago CI github-actions:test passed 78 ms d2c12e5 main Profile
6 hours ago CI github-actions:test passed 40 ms 0b902f6 main Profile
7 hours ago CI github-actions:test passed 69 ms 78a4357 main Profile
2 years ago CI github-actions passed 97 ms 61209a6 main Run
2 years, 2 months ago CI github-actions passed 95 ms 55ca4c2 main Run
2 years, 3 months ago CI github-actions passed 101 ms d007c85 main Run
2 years, 4 months ago CI github-actions passed 103 ms 3d86013 main Run
2 years, 4 months ago CI github-actions passed 98 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 94 ms a29c34e main Run
2 years, 5 months ago CI github-actions passed 93 ms e55e63f main Run
2 years, 5 months ago CI github-actions passed 94 ms ba5cb67 main Run
2 years, 6 months ago CI github-actions passed 94 ms 7c123d8 main Run
2 years, 6 months ago CI github-actions passed 93 ms 5ae45e1 main Run
2 years, 6 months ago CI github-actions passed 91 ms 1680367 main Run
2 years, 6 months ago CI github-actions passed 94 ms da2b917 main Run
2 years, 6 months ago CI github-actions passed 98 ms d3313c0 main Run