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

ProjectEditPage::test_other_peoples_project

First seen 2 years, 11 months ago in b9e98d9
CI github-actions:test 15 runs
Average
48 ms
median 52 ms
max 76 ms
Phases
Setup 0.64 ms Call 47 ms Teardown 0.16 ms
Categories
Database 23 ms Other (Libraries, Unsampled, pytest, Deep copies) 25 ms

33 database queries per run

Needs 188 KB of memory (max 824 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call40 ms98.3%
ProjectEditPage.test_other_peoples_projectapps/projects/tests.py:154 response = self.client.get(other_project.url("project_edit"))20 ms49.2%
Client.getdjango/test/client.py:112420 ms49.2%
RequestFactory.getdjango/test/client.py:47520 ms49.2%
RequestFactory.genericdjango/test/client.py:67120 ms49.2%
Client.requestdjango/test/client.py:108220 ms49.2%
ClientHandler.__call__django/test/client.py:17316 ms39.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6216 ms39.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10416 ms39.3%
WhiteNoise.add_fileswhitenoise/base.py:10816 ms39.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12014 ms34.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13112 ms29.5%
WhiteNoise.get_static_filewhitenoise/base.py:2086 ms14.7%
StaticFile.__init__whitenoise/responders.py:772 ms4.9%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms4.9%
StaticFile.__init__whitenoise/responders.py:732 ms4.9%
StaticFile.get_headerswhitenoise/responders.py:1762 ms4.9%
formatdate<stdlib>/email/utils.py:2662 ms4.9%
StaticFile.__init__whitenoise/responders.py:722 ms4.9%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms4.9%
WhiteNoise.get_static_filewhitenoise/base.py:2034 ms9.8%
WhiteNoise.add_cache_headerswhitenoise/base.py:2244 ms9.8%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms4.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms4.9%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms4.9%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms4.9%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1782 ms4.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms4.9%
scantreewhitenoise/base.py:2622 ms4.9%
scantreewhitenoise/base.py:2622 ms4.9%
scantreewhitenoise/base.py:2622 ms4.9%
scantreewhitenoise/base.py:2622 ms4.9%
scantreewhitenoise/base.py:2622 ms4.9%
scantreewhitenoise/base.py:2602 ms4.9%
ClientHandler.__call__django/test/client.py:1864 ms9.8%
BaseHandler.get_responsedjango/core/handlers/base.py:1414 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms9.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1304 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms9.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms9.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1234 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms9.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms9.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms9.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms9.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms9.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms9.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms9.8%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:344 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms9.8%
BaseHandler._get_responsedjango/core/handlers/base.py:1984 ms9.8%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:594 ms9.8%
project_editapps/projects/urls.py:6434 ms9.8%
managed_projectapps/projects/urls.py:61 project = get_object_or_404(2 ms4.9%
get_object_or_404django/shortcuts.py:902 ms4.9%
QuerySet.getdjango/db/models/query.py:6252 ms4.9%
QuerySet.filterdjango/db/models/query.py:15422 ms4.9%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms4.9%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms4.9%
Query.add_qdjango/db/models/sql/query.py:16712 ms4.9%
Query._add_qdjango/db/models/sql/query.py:17032 ms4.9%
Query.build_filterdjango/db/models/sql/query.py:16132 ms4.9%
Query.build_lookupdjango/db/models/sql/query.py:14402 ms4.9%
managed_projectapps/projects/urls.py:642 ms4.9%
can_manageapps/projects/urls.py:442 ms4.9%
can_manage_projectapps/projects/urls.py:40 return user.is_superuser or project.organization.membership_set.filter(user=user).exists()2 ms4.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms4.9%
QuerySet.filterdjango/db/models/query.py:15412 ms4.9%
QuerySet._not_support_combined_queriesdjango/db/models/query.py:20742 ms4.9%
QuerySet.querydjango/db/models/query.py:3062 ms4.9%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms4.9%
Query.add_qdjango/db/models/sql/query.py:16712 ms4.9%
Query._add_qdjango/db/models/sql/query.py:17032 ms4.9%
Query.build_filterdjango/db/models/sql/query.py:16132 ms4.9%
Query.build_lookupdjango/db/models/sql/query.py:14302 ms4.9%
BaseExpression.get_lookupdjango/db/models/expressions.py:4042 ms4.9%
RegisterLookupMixin.get_lookupdjango/db/models/query_utils.py:3282 ms4.9%
ProjectEditPage.setUpapps/projects/tests.py:143 self.client.force_login(self.user)10 ms24.6%
ClientMixin.force_logindjango/test/client.py:85510 ms24.6%
ClientMixin._logindjango/test/client.py:8818 ms19.7%
logindjango/contrib/auth/__init__.py:1874 ms9.8%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4342 ms4.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms4.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1232 ms4.9%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1022 ms4.9%
SessionBase.encodedjango/contrib/sessions/backends/base.py:1262 ms4.9%
dumpsdjango/core/signing.py:1512 ms4.9%
Signer.sign_objectdjango/core/signing.py:2392 ms4.9%
TimestampSigner.signdjango/core/signing.py:2612 ms4.9%
Signer.signdjango/core/signing.py:2052 ms4.9%
Signer.signaturedjango/core/signing.py:2022 ms4.9%
base64_hmacdjango/core/signing.py:1012 ms4.9%
salted_hmacdjango/utils/crypto.py:452 ms4.9%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4372 ms4.9%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1752 ms4.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms4.9%
QuerySet.getdjango/db/models/query.py:6352 ms4.9%
QuerySet.__len__django/db/models/query.py:3722 ms4.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.9%
ModelIterable.__iter__django/db/models/query.py:952 ms4.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.9%
Cursor.executepsycopg/cursor.py:1132 ms4.9%
Connection.waitpsycopg/connection.py:4952 ms4.9%
logindjango/contrib/auth/__init__.py:1752 ms4.9%
SessionBase.__contains__django/contrib/sessions/backends/base.py:522 ms4.9%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2512 ms4.9%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms4.9%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms4.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms4.9%
QuerySet.getdjango/db/models/query.py:6352 ms4.9%
QuerySet.__len__django/db/models/query.py:3722 ms4.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.9%
ModelIterable.__iter__django/db/models/query.py:952 ms4.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.9%
Cursor.executepsycopg/cursor.py:1132 ms4.9%
Connection.waitpsycopg/connection.py:4952 ms4.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms4.9%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms4.9%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms4.9%
PostgresClientQuery.dumppsycopg/_queries.py:2992 ms4.9%
PostgresClientQuery.dump.<locals>.<genexpr>psycopg/_queries.py:3002 ms4.9%
logindjango/contrib/auth/__init__.py:1972 ms4.9%
Signal.senddjango/dispatch/dispatcher.py:2092 ms4.9%
update_last_logindjango/contrib/auth/models.py:242 ms4.9%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:622 ms4.9%
Model.savedjango/db/models/base.py:8742 ms4.9%
Model.save_basedjango/db/models/base.py:9662 ms4.9%
Model._save_tabledjango/db/models/base.py:11102 ms4.9%
Model._do_updatedjango/db/models/base.py:12112 ms4.9%
QuerySet._updatedjango/db/models/query.py:13272 ms4.9%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms4.9%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms4.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.9%
Cursor.executepsycopg/cursor.py:1132 ms4.9%
Connection.waitpsycopg/connection.py:4952 ms4.9%
ClientMixin._logindjango/test/client.py:8762 ms4.9%
ClientMixin.sessiondjango/test/client.py:8122 ms4.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1212 ms4.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms4.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1232 ms4.9%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1032 ms4.9%
SessionBase.get_expiry_datedjango/contrib/sessions/backends/base.py:3252 ms4.9%
nowdjango/utils/timezone.py:2042 ms4.9%
ProjectEditPage.test_other_peoples_projectapps/projects/tests.py:153 other_project = make_project("Other Project", members=[User.objects.create_user("otheruser")])10 ms24.6%
make_projectapps/projects/testing.py:714 ms9.8%
add_memberapps/projects/testing.py:76 membership, _ = Membership.objects.get_or_create(4 ms9.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms9.8%
QuerySet.get_or_createdjango/db/models/query.py:9872 ms4.9%
QuerySet.getdjango/db/models/query.py:6352 ms4.9%
QuerySet.__len__django/db/models/query.py:3722 ms4.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.9%
ModelIterable.__iter__django/db/models/query.py:952 ms4.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16222 ms4.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.9%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms4.9%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2982 ms4.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.9%
DatabaseWrapper.create_cursordjango/db/backends/postgresql/base.py:4302 ms4.9%
Connection.cursorpsycopg/connection.py:2592 ms4.9%
Cursor.__init__psycopg/cursor.py:472 ms4.9%
QuerySet.get_or_createdjango/db/models/query.py:9922 ms4.9%
Atomic.__exit__django/db/transaction.py:2472 ms4.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.9%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms4.9%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.9%
Cursor.executepsycopg/cursor.py:1132 ms4.9%
Connection.waitpsycopg/connection.py:4952 ms4.9%
UserManager.create_userdjango/contrib/auth/models.py:1752 ms4.9%
UserManager._create_userdjango/contrib/auth/models.py:1622 ms4.9%
UserManager._create_user_objectdjango/contrib/auth/models.py:1542 ms4.9%
Model.__init__django/db/models/base.py:5502 ms4.9%
make_projectapps/projects/testing.py:622 ms4.9%
unique_slugapps/orgs/models.py:46 while slug in reserved or taken.filter(slug=slug).exists():2 ms4.9%
QuerySet.existsdjango/db/models/query.py:13372 ms4.9%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms4.9%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms4.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.9%
Cursor.executepsycopg/cursor.py:1132 ms4.9%
Connection.waitpsycopg/connection.py:4952 ms4.9%
make_projectapps/projects/testing.py:672 ms4.9%
unique_slugapps/orgs/models.py:46 while slug in reserved or taken.filter(slug=slug).exists():2 ms4.9%
QuerySet.existsdjango/db/models/query.py:13372 ms4.9%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms4.9%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms4.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.9%
Cursor.executepsycopg/cursor.py:1132 ms4.9%
Connection.waitpsycopg/connection.py:4952 ms4.9%
Estimated from 20 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:154
response = self.client.get(other_project.url("project_edit"))
ProjectEditPage.test_other_peoples_project · Libraries
16 ms
apps/projects/tests.py:143
self.client.force_login(self.user)
ProjectEditPage.setUp · Database
10 ms
apps/orgs/models.py:46
while slug in reserved or taken.filter(slug=slug).exists():
unique_slug · Database
4 ms
apps/projects/testing.py:76
membership, _ = Membership.objects.get_or_create(
add_member · Database
4 ms
apps/projects/tests.py:153
other_project = make_project("Other Project", members=[User.objects.create_user("otheruser")])
ProjectEditPage.test_other_peoples_project · Database
2 ms
apps/projects/urls.py:61
project = get_object_or_404(
managed_project · Database
2 ms
apps/projects/urls.py:40
return user.is_superuser or project.organization.membership_set.filter(user=user).exists()
can_manage_project · Database
2 ms

Fixtures

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

Database

33 queries · 6 ms
No repeated queries.

Biggest pieces of work

call test body
apps/projects/tests.py:153
30 ms
call setUp
apps/projects/tests.py:143
10 ms

Reliability

15 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 15 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 41 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 53 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 27 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 49 ms e141198 main Profile
1 month ago CI github-actions:test passed 29 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 57 ms afde85b main Profile
1 month ago CI github-actions:test passed 48 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 76 ms 044719a main Profile
1 month ago CI github-actions:test passed 39 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 56 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 53 ms 9caa567 main Profile
1 month, 1 week ago CI github-actions:test passed 53 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 61 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 26 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 52 ms 78a4357 main Profile