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

TestOwnerManagement::test_non_owner_cannot_open_manage_page

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
123 ms
median 102 ms
max 249 ms
Phases
Setup 2 ms Call 120 ms Teardown 0.39 ms
Categories
Database 31 ms Test code 0.35 ms Other (Libraries, pytest, Unsampled, Deep copies, ...) 91 ms

23 database queries per run

Needs 301 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
setup1 ms1.8%
call56 ms97.8%
TestOwnerManagement.test_non_owner_cannot_open_manage_pagestarter_packs/tests.py:462 response = self.client.get(reverse("manage_owners", args=[self.pack.slug]))31 ms53.8%
Client.getdjango/test/client.py:113331 ms53.8%
RequestFactory.getdjango/test/client.py:47531 ms53.8%
RequestFactory.genericdjango/test/client.py:67131 ms53.8%
Client.requestdjango/test/client.py:109131 ms53.8%
ClientHandler.__call__django/test/client.py:17331 ms53.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6331 ms53.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10431 ms53.8%
WhiteNoise.add_fileswhitenoise/base.py:10831 ms53.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12020 ms34.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13120 ms34.2%
WhiteNoise.get_static_filewhitenoise/base.py:21717 ms29.3%
StaticFile.__init__whitenoise/responders.py:7311 ms19.6%
StaticFile.get_headerswhitenoise/responders.py:1766 ms9.8%
formatdate<stdlib>/email/utils.py:2663 ms4.9%
StaticFile.get_headerswhitenoise/responders.py:1673 ms4.9%
StaticFile.get_headerswhitenoise/responders.py:1703 ms4.9%
WhiteNoise.get_static_filewhitenoise/base.py:2123 ms4.9%
WhiteNoise.add_cache_headerswhitenoise/base.py:2333 ms4.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1763 ms4.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1973 ms4.9%
LazyObject.__getattribute__django/utils/functional.py:2803 ms4.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11511 ms19.6%
scantreewhitenoise/base.py:27111 ms19.6%
scantreewhitenoise/base.py:27111 ms19.6%
scantreewhitenoise/base.py:2738 ms14.7%
scantreewhitenoise/base.py:2693 ms4.9%
TestOwnerManagement.test_non_owner_cannot_open_manage_pagestarter_packs/tests.py:461 self.client.force_login(self.friend) # not an owner23 ms39.1%
ClientMixin.force_logindjango/test/client.py:85823 ms39.1%
ClientMixin._logindjango/test/client.py:88920 ms34.2%
logindjango/contrib/auth/__init__.py:18917 ms29.3%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:44011 ms19.6%
SessionStore.deletedjango/contrib/sessions/backends/db.py:17511 ms19.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:8711 ms19.6%
QuerySet.getdjango/db/models/query.py:70211 ms19.6%
QuerySet.__len__django/db/models/query.py:42111 ms19.6%
QuerySet._fetch_alldjango/db/models/query.py:226211 ms19.6%
ModelIterable.__iter__django/db/models/query.py:10311 ms19.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162511 ms19.6%
CursorWrapper.executedjango/db/backends/utils.py:7911 ms19.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9211 ms19.6%
CursorWrapper._executedjango/db/backends/utils.py:10511 ms19.6%
Cursor.executepsycopg/cursor.py:11311 ms19.6%
Connection.waitpsycopg/connection.py:49511 ms19.6%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4376 ms9.8%
SessionStore.createdjango/contrib/sessions/backends/db.py:703 ms4.9%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2013 ms4.9%
SessionStore.existsdjango/contrib/sessions/backends/db.py:633 ms4.9%
QuerySet.existsdjango/db/models/query.py:14583 ms4.9%
Query.has_resultsdjango/db/models/sql/query.py:6873 ms4.9%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15933 ms4.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:793 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms4.9%
Cursor.executepsycopg/cursor.py:1133 ms4.9%
Connection.waitpsycopg/connection.py:4953 ms4.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms4.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms4.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms4.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:743 ms4.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1273 ms4.9%
Model.savedjango/db/models/base.py:9043 ms4.9%
Model.save_basedjango/db/models/base.py:9963 ms4.9%
Model._save_tabledjango/db/models/base.py:11993 ms4.9%
Model._do_insertdjango/db/models/base.py:12513 ms4.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms4.9%
QuerySet._insertdjango/db/models/query.py:21413 ms4.9%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19363 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:793 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms4.9%
Cursor.executepsycopg/cursor.py:1133 ms4.9%
Connection.waitpsycopg/connection.py:4953 ms4.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms4.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms4.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms4.9%
logindjango/contrib/auth/__init__.py:1983 ms4.9%
Signal.senddjango/dispatch/dispatcher.py:2493 ms4.9%
update_last_logindjango/contrib/auth/models.py:243 ms4.9%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:623 ms4.9%
Model.savedjango/db/models/base.py:9043 ms4.9%
Model.save_basedjango/db/models/base.py:9963 ms4.9%
Model._save_tabledjango/db/models/base.py:11163 ms4.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms4.9%
ClientMixin._logindjango/test/client.py:8843 ms4.9%
ClientMixin.sessiondjango/test/client.py:8153 ms4.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1213 ms4.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:743 ms4.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1273 ms4.9%
Model.savedjango/db/models/base.py:9043 ms4.9%
Model.save_basedjango/db/models/base.py:9963 ms4.9%
Model._save_tabledjango/db/models/base.py:11993 ms4.9%
Model._do_insertdjango/db/models/base.py:12513 ms4.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms4.9%
QuerySet._insertdjango/db/models/query.py:21413 ms4.9%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19363 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:793 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms4.9%
Cursor.executepsycopg/cursor.py:1133 ms4.9%
Connection.waitpsycopg/connection.py:4953 ms4.9%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()3 ms4.9%
TestCase._fixture_setupdjango/test/testcases.py:14813 ms4.9%
TestCase._enter_atomicsdjango/test/testcases.py:13993 ms4.9%
Atomic.__enter__django/db/transaction.py:2233 ms4.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms4.9%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4003 ms4.9%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3673 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:793 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms4.9%
Cursor.executepsycopg/cursor.py:1133 ms4.9%
Connection.waitpsycopg/connection.py:4953 ms4.9%
Estimated from 21 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:462
response = self.client.get(reverse("manage_owners", args=[self.pack.slug]))
TestOwnerManagement.test_non_owner_cannot_open_manage_page · Libraries
31 ms
starter_packs/tests.py:461
self.client.force_login(self.friend) # not an owner
TestOwnerManagement.test_non_owner_cannot_open_manage_page · Database
23 ms

Fixtures

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

Database

23 queries · 10 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:461
54 ms
call _pre_setup
django/test/testcases.py:1167
3 ms
setup pytest internals 1 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 58 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 164 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 117 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 54 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 131 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 102 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 73 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 101 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 91 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 81 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 249 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 197 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 176 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 77 ms 0c23747 main Run