flakytest.dev anze3db fedidevs
Tests / starter_packs/tests.py

TestOwnerManagement::test_remove_owner

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
144 ms
median 126 ms
max 248 ms
Phases
Setup 2 ms Call 141 ms Teardown 0.68 ms
Categories
Database 48 ms App code 0.36 ms Other (Libraries, Unsampled, pytest, Cache, ...) 95 ms

29 database queries per run

Needs 419 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup0.70 ms0.8%
call80 ms95.9%
TestOwnerManagement.test_remove_ownerstarter_packs/tests.py:620 self.client.force_login(self.owner)44 ms52.9%
ClientMixin.force_logindjango/test/client.py:85844 ms52.9%
ClientMixin._logindjango/test/client.py:88928 ms33.1%
logindjango/contrib/auth/__init__.py:18914 ms16.5%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4378 ms9.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:746 ms6.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1263 ms3.3%
Atomic.__enter__django/db/transaction.py:2233 ms3.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms3.3%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4003 ms3.3%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3673 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:793 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms3.3%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms3.3%
Cursor.executepsycopg/cursor.py:1133 ms3.3%
Connection.waitpsycopg/connection.py:4953 ms3.3%
SessionStore.savedjango/contrib/sessions/backends/db.py:1273 ms3.3%
Model.savedjango/db/models/base.py:9043 ms3.3%
Model.save_basedjango/db/models/base.py:9963 ms3.3%
Model._save_tabledjango/db/models/base.py:11993 ms3.3%
Model._do_insertdjango/db/models/base.py:12513 ms3.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms3.3%
QuerySet._insertdjango/db/models/query.py:21413 ms3.3%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19363 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:793 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms3.3%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms3.3%
Cursor.executepsycopg/cursor.py:1133 ms3.3%
Connection.waitpsycopg/connection.py:4953 ms3.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms3.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms3.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms3.3%
SessionStore.createdjango/contrib/sessions/backends/db.py:703 ms3.3%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2013 ms3.3%
SessionStore.existsdjango/contrib/sessions/backends/db.py:633 ms3.3%
QuerySet.existsdjango/db/models/query.py:14583 ms3.3%
Query.has_resultsdjango/db/models/sql/query.py:6873 ms3.3%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15933 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:793 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms3.3%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms3.3%
Cursor.executepsycopg/cursor.py:1133 ms3.3%
Connection.waitpsycopg/connection.py:4953 ms3.3%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4406 ms6.6%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1756 ms6.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:876 ms6.6%
QuerySet.getdjango/db/models/query.py:7026 ms6.6%
QuerySet.__len__django/db/models/query.py:4216 ms6.6%
QuerySet._fetch_alldjango/db/models/query.py:22626 ms6.6%
ModelIterable.__iter__django/db/models/query.py:1036 ms6.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16256 ms6.6%
CursorWrapper.executedjango/db/backends/utils.py:796 ms6.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms6.6%
CursorWrapper._executedjango/db/backends/utils.py:1056 ms6.6%
Cursor.executepsycopg/cursor.py:1136 ms6.6%
Connection.waitpsycopg/connection.py:4956 ms6.6%
logindjango/contrib/auth/__init__.py:17711 ms13.2%
SessionBase.__contains__django/contrib/sessions/backends/base.py:5211 ms13.2%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:25411 ms13.2%
SessionStore.loaddjango/contrib/sessions/backends/db.py:5511 ms13.2%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:3411 ms13.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:8711 ms13.2%
QuerySet.getdjango/db/models/query.py:70211 ms13.2%
QuerySet.__len__django/db/models/query.py:42111 ms13.2%
QuerySet._fetch_alldjango/db/models/query.py:226211 ms13.2%
ModelIterable.__iter__django/db/models/query.py:10311 ms13.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16258 ms9.9%
CursorWrapper.executedjango/db/backends/utils.py:798 ms9.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:928 ms9.9%
CursorWrapper._executedjango/db/backends/utils.py:1058 ms9.9%
Cursor.executepsycopg/cursor.py:1138 ms9.9%
Connection.waitpsycopg/connection.py:4958 ms9.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16123 ms3.3%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7963 ms3.3%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5793 ms3.3%
WhereNode.as_sqldjango/db/models/sql/where.py:1513 ms3.3%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5793 ms3.3%
BuiltinLookup.as_sqldjango/db/models/lookups.py:2443 ms3.3%
logindjango/contrib/auth/__init__.py:1983 ms3.3%
Signal.senddjango/dispatch/dispatcher.py:2493 ms3.3%
update_last_logindjango/contrib/auth/models.py:243 ms3.3%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:623 ms3.3%
Model.savedjango/db/models/base.py:9043 ms3.3%
Model.save_basedjango/db/models/base.py:9933 ms3.3%
ClientMixin._logindjango/test/client.py:88414 ms16.5%
ClientMixin.sessiondjango/test/client.py:81514 ms16.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:12114 ms16.5%
SessionStore.createdjango/contrib/sessions/backends/db.py:708 ms9.9%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2018 ms9.9%
SessionStore.existsdjango/contrib/sessions/backends/db.py:638 ms9.9%
QuerySet.existsdjango/db/models/query.py:14588 ms9.9%
Query.has_resultsdjango/db/models/sql/query.py:6878 ms9.9%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15938 ms9.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16258 ms9.9%
CursorWrapper.executedjango/db/backends/utils.py:798 ms9.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:928 ms9.9%
CursorWrapper._executedjango/db/backends/utils.py:1058 ms9.9%
Cursor.executepsycopg/cursor.py:1138 ms9.9%
Connection.waitpsycopg/connection.py:4958 ms9.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2068 ms9.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2868 ms9.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:788 ms9.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:746 ms6.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1276 ms6.6%
Model.savedjango/db/models/base.py:9046 ms6.6%
Model.save_basedjango/db/models/base.py:9966 ms6.6%
Model._save_tabledjango/db/models/base.py:11996 ms6.6%
Model._do_insertdjango/db/models/base.py:12516 ms6.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:876 ms6.6%
QuerySet._insertdjango/db/models/query.py:21416 ms6.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19353 ms3.3%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19363 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:793 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms3.3%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms3.3%
Cursor.executepsycopg/cursor.py:1133 ms3.3%
Connection.waitpsycopg/connection.py:4953 ms3.3%
ClientMixin._logindjango/test/client.py:8913 ms3.3%
SessionStore.savedjango/contrib/sessions/backends/db.py:1273 ms3.3%
Model.savedjango/db/models/base.py:9043 ms3.3%
Model.save_basedjango/db/models/base.py:9963 ms3.3%
Model._save_tabledjango/db/models/base.py:11403 ms3.3%
Model._do_updatedjango/db/models/base.py:12443 ms3.3%
QuerySet._updatedjango/db/models/query.py:14483 ms3.3%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21503 ms3.3%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21213 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16123 ms3.3%
SQLUpdateCompiler.as_sqldjango/db/models/sql/compiler.py:20983 ms3.3%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5793 ms3.3%
WhereNode.as_sqldjango/db/models/sql/where.py:1513 ms3.3%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5793 ms3.3%
Exact.as_sqldjango/db/models/lookups.py:4073 ms3.3%
BuiltinLookup.as_sqldjango/db/models/lookups.py:2433 ms3.3%
BuiltinLookup.process_lhsdjango/db/models/lookups.py:2353 ms3.3%
Lookup.process_lhsdjango/db/models/lookups.py:1093 ms3.3%
TestOwnerManagement.test_remove_ownerstarter_packs/tests.py:621 response = self.client.post(reverse("remove_owner", args=[self.pack.slug, self.friend.id]))33 ms39.7%
Client.postdjango/test/client.py:116233 ms39.7%
RequestFactory.postdjango/test/client.py:49933 ms39.7%
RequestFactory.genericdjango/test/client.py:67133 ms39.7%
Client.requestdjango/test/client.py:109133 ms39.7%
ClientHandler.__call__django/test/client.py:17333 ms39.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6333 ms39.7%
__init____init__:-133 ms39.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10433 ms39.7%
WhiteNoise.add_fileswhitenoise/base.py:10833 ms39.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11522 ms26.5%
scantreewhitenoise/base.py:27122 ms26.5%
scantreewhitenoise/base.py:27119 ms23.2%
scantreewhitenoise/base.py:27314 ms16.5%
<GC>~14 ms16.5%
scantreewhitenoise/base.py:2713 ms3.3%
scantreewhitenoise/base.py:2713 ms3.3%
scantreewhitenoise/base.py:2713 ms3.3%
scantreewhitenoise/base.py:2733 ms3.3%
scantreewhitenoise/base.py:2693 ms3.3%
scantreewhitenoise/base.py:2693 ms3.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12011 ms13.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13111 ms13.2%
WhiteNoise.get_static_filewhitenoise/base.py:2178 ms9.9%
StaticFile.__init__whitenoise/responders.py:766 ms6.6%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1883 ms3.3%
StaticFile.__init__whitenoise/responders.py:723 ms3.3%
StaticFile.get_file_statswhitenoise/responders.py:1633 ms3.3%
WhiteNoise.get_static_filewhitenoise/base.py:2123 ms3.3%
WhiteNoise.add_cache_headerswhitenoise/base.py:2333 ms3.3%
TestOwnerManagement.test_remove_ownerstarter_packs/tests.py:619 self.pack.owners.add(self.friend)3 ms3.3%
create_forward_many_to_many_manager.<locals>.ManyRelatedManager.adddjango/db/models/fields/related_descriptors.py:13243 ms3.3%
create_forward_many_to_many_manager.<locals>.ManyRelatedManager._add_basedjango/db/models/fields/related_descriptors.py:13013 ms3.3%
create_forward_many_to_many_manager.<locals>.ManyRelatedManager._add_itemsdjango/db/models/fields/related_descriptors.py:16033 ms3.3%
QuerySet.bulk_createdjango/db/models/query.py:9003 ms3.3%
QuerySet._batched_insertdjango/db/models/query.py:21793 ms3.3%
QuerySet._insertdjango/db/models/query.py:21413 ms3.3%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19363 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:793 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms3.3%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms3.3%
Cursor.executepsycopg/cursor.py:1133 ms3.3%
Connection.waitpsycopg/connection.py:4953 ms3.3%
Estimated from 33 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:620
self.client.force_login(self.owner)
TestOwnerManagement.test_remove_owner · Database
44 ms
starter_packs/tests.py:621
response = self.client.post(reverse("remove_owner", args=[self.pack.slug, self.friend.id]))
TestOwnerManagement.test_remove_owner · Libraries
33 ms
starter_packs/tests.py:619
self.pack.owners.add(self.friend)
TestOwnerManagement.test_remove_owner · Database
3 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.05 ms
_template_string_if_invalid_marker function 0.04 ms
_django_db_marker function 0.03 ms
_django_isolate_apps function 0.03 ms
_live_server_helper 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

29 queries · 17 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:621
80 ms
setup pytest internals 0.52 ms
setup __init__
__init__:-1
0.17 ms

Reliability

14 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 14 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 84 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 184 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 207 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 61 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 126 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 106 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 140 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 118 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 116 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 106 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 186 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 248 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 185 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 85 ms 0c23747 main Run