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

TestOwnerManagement::test_invite_without_account_access_is_rejected

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
129 ms
median 114 ms
max 237 ms
Phases
Setup 5 ms Call 124 ms Teardown 0.82 ms
Categories
Database 46 ms Factories 0.41 ms Test code 0.15 ms Other (Libraries, pytest, Templates, Unsampled, ...) 82 ms

29 database queries per run

Needs 160 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
call62 ms98.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()35 ms55.7%
TestCase._fixture_teardowndjango/test/testcases.py:149822 ms34.3%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:49519 ms30.0%
CursorWrapper.executedjango/db/backends/utils.py:7919 ms30.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9219 ms30.0%
CursorWrapper._executedjango/db/backends/utils.py:10319 ms30.0%
Cursor.executepsycopg/cursor.py:11319 ms30.0%
Connection.waitpsycopg/connection.py:49519 ms30.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:20619 ms30.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28619 ms30.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7819 ms30.0%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4963 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:793 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms4.3%
Cursor.executepsycopg/cursor.py:1133 ms4.3%
Connection.waitpsycopg/connection.py:4953 ms4.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms4.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms4.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms4.3%
TestCase._fixture_teardowndjango/test/testcases.py:150014 ms21.4%
TestCase._rollback_atomicsdjango/test/testcases.py:140814 ms21.4%
Atomic.__exit__django/db/transaction.py:2958 ms12.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms8.6%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4135 ms8.6%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3715 ms8.6%
CursorWrapper.executedjango/db/backends/utils.py:795 ms8.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms8.6%
CursorWrapper._executedjango/db/backends/utils.py:1035 ms8.6%
Cursor.executepsycopg/cursor.py:1135 ms8.6%
Connection.waitpsycopg/connection.py:4955 ms8.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2065 ms8.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2865 ms8.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:785 ms8.6%
Atomic.__exit__django/db/transaction.py:2985 ms8.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms8.6%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4315 ms8.6%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3755 ms8.6%
CursorWrapper.executedjango/db/backends/utils.py:795 ms8.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms8.6%
CursorWrapper._executedjango/db/backends/utils.py:1035 ms8.6%
Cursor.executepsycopg/cursor.py:1135 ms8.6%
Connection.waitpsycopg/connection.py:4955 ms8.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2065 ms8.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2865 ms8.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:785 ms8.6%
TestOwnerManagement.test_invite_without_account_access_is_rejectedstarter_packs/tests.py:500 response = self.client.post(reverse("invite_owner", args=[self.pack.slug, ghost.id]))14 ms21.4%
Client.postdjango/test/client.py:116214 ms21.4%
RequestFactory.postdjango/test/client.py:49914 ms21.4%
RequestFactory.genericdjango/test/client.py:67114 ms21.4%
Client.requestdjango/test/client.py:109114 ms21.4%
ClientHandler.__call__django/test/client.py:17314 ms21.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6314 ms21.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10414 ms21.4%
WhiteNoise.add_fileswhitenoise/base.py:10814 ms21.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1158 ms12.8%
scantreewhitenoise/base.py:2715 ms8.6%
scantreewhitenoise/base.py:2715 ms8.6%
scantreewhitenoise/base.py:2713 ms4.3%
scantreewhitenoise/base.py:2713 ms4.3%
scantreewhitenoise/base.py:2713 ms4.3%
scantreewhitenoise/base.py:2693 ms4.3%
scantreewhitenoise/base.py:2733 ms4.3%
scantreewhitenoise/base.py:2733 ms4.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1205 ms8.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1315 ms8.6%
WhiteNoise.get_static_filewhitenoise/base.py:2175 ms8.6%
StaticFile.__init__whitenoise/responders.py:733 ms4.3%
StaticFile.get_headerswhitenoise/responders.py:1713 ms4.3%
StaticFile.__init__whitenoise/responders.py:743 ms4.3%
parsedate<stdlib>/email/_parseaddr.py:1873 ms4.3%
TestOwnerManagement.test_invite_without_account_access_is_rejectedstarter_packs/tests.py:499 self.client.force_login(self.owner)8 ms12.8%
ClientMixin.force_logindjango/test/client.py:8588 ms12.8%
ClientMixin._logindjango/test/client.py:8895 ms8.6%
logindjango/contrib/auth/__init__.py:1895 ms8.6%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4375 ms8.6%
SessionStore.createdjango/contrib/sessions/backends/db.py:703 ms4.3%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2013 ms4.3%
SessionStore.existsdjango/contrib/sessions/backends/db.py:633 ms4.3%
QuerySet.existsdjango/db/models/query.py:14583 ms4.3%
Query.has_resultsdjango/db/models/sql/query.py:6863 ms4.3%
Query.get_compilerdjango/db/models/sql/query.py:3753 ms4.3%
BaseDatabaseOperations.compilerdjango/db/backends/base/operations.py:4133 ms4.3%
SessionStore.createdjango/contrib/sessions/backends/db.py:743 ms4.3%
SessionStore.savedjango/contrib/sessions/backends/db.py:1263 ms4.3%
Atomic.__exit__django/db/transaction.py:2593 ms4.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms4.3%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4313 ms4.3%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3753 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:793 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms4.3%
Cursor.executepsycopg/cursor.py:1133 ms4.3%
Connection.waitpsycopg/connection.py:4953 ms4.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms4.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms4.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms4.3%
ClientMixin._logindjango/test/client.py:8843 ms4.3%
ClientMixin.sessiondjango/test/client.py:8153 ms4.3%
SessionStore.savedjango/contrib/sessions/backends/db.py:1213 ms4.3%
SessionStore.createdjango/contrib/sessions/backends/db.py:703 ms4.3%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2013 ms4.3%
SessionStore.existsdjango/contrib/sessions/backends/db.py:633 ms4.3%
QuerySet.existsdjango/db/models/query.py:14583 ms4.3%
Query.has_resultsdjango/db/models/sql/query.py:6873 ms4.3%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15933 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16123 ms4.3%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7683 ms4.3%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:913 ms4.3%
TestOwnerManagement.test_invite_without_account_access_is_rejectedstarter_packs/tests.py:498 ghost = baker.make("auth.User") # never logged into fedidevs3 ms4.3%
makemodel_bakery/baker.py:1753 ms4.3%
Baker.makemodel_bakery/baker.py:4543 ms4.3%
Baker._makemodel_bakery/baker.py:5423 ms4.3%
Baker.instancemodel_bakery/baker.py:6593 ms4.3%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:623 ms4.3%
Model.savedjango/db/models/base.py:9043 ms4.3%
Model.save_basedjango/db/models/base.py:9963 ms4.3%
Model._save_tabledjango/db/models/base.py:11993 ms4.3%
Model._do_insertdjango/db/models/base.py:12513 ms4.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms4.3%
QuerySet._insertdjango/db/models/query.py:21413 ms4.3%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19363 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:793 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms4.3%
Cursor.executepsycopg/cursor.py:1133 ms4.3%
Connection.waitpsycopg/connection.py:4953 ms4.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms4.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms4.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms4.3%
teardown0.25 ms0.4%
Estimated from 26 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:500
response = self.client.post(reverse("invite_owner", args=[self.pack.slug, ghost.id]))
TestOwnerManagement.test_invite_without_account_access_is_rejected · Libraries
14 ms
starter_packs/tests.py:499
self.client.force_login(self.owner)
TestOwnerManagement.test_invite_without_account_access_is_rejected · Database
8 ms
starter_packs/tests.py:498
ghost = baker.make("auth.User") # never logged into fedidevs
TestOwnerManagement.test_invite_without_account_access_is_rejected · Database
3 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.04 ms
_template_string_if_invalid_marker function 0.03 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.02 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

28 queries · 11 ms
No repeated queries.

Biggest pieces of work

call _post_teardown
django/test/testcases.py:1243
35 ms
call test body
starter_packs/tests.py:498
24 ms
call pytest internals 3 ms
teardown pytest internals 0.25 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 63 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 121 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 144 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 112 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 134 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 114 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 75 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 107 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 85 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 73 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 195 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 237 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 220 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 106 ms 0c23747 main Run