Tests / fedidevs/tests.py
TestPotatoqDashboard::test_inactive_staff_is_treated_as_logged_out
First seen 1 month ago in 9b75244
CI
github-actions:test
7 runs
Average
99 ms
median 101 ms
max 137 ms
max 137 ms
Phases
Setup 1 ms
Call 98 ms
Teardown 0.33 ms
Categories
Database 36 ms
Other (Libraries, pytest, Unsampled, Deep copies) 64 ms
22 database queries per run
Needs 1 KB of memory (max 4 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call77 ms98.8%
TestPotatoqDashboard.test_inactive_staff_is_treated_as_logged_outfedidevs/tests.py:139 self.client.force_login(self.inactive_staff)65 ms83.7%
ClientMixin.force_logindjango/test/client.py:85865 ms83.7%
ClientMixin._logindjango/test/client.py:88457 ms73.6%
ClientMixin.sessiondjango/test/client.py:81557 ms73.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:12157 ms73.6%
SessionStore.createdjango/contrib/sessions/backends/db.py:7457 ms73.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:12657 ms73.6%
Atomic.__exit__django/db/transaction.py:25957 ms73.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2657 ms73.6%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:43157 ms73.6%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:37557 ms73.6%
CursorWrapper.executedjango/db/backends/utils.py:7957 ms73.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9257 ms73.6%
CursorWrapper._executedjango/db/backends/utils.py:10357 ms73.6%
Cursor.executepsycopg/cursor.py:11357 ms73.6%
Connection.waitpsycopg/connection.py:49557 ms73.6%
ClientMixin._logindjango/test/client.py:8897 ms9.1%
logindjango/contrib/auth/__init__.py:1773 ms4.0%
SessionBase.__contains__django/contrib/sessions/backends/base.py:523 ms4.0%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2543 ms4.0%
SessionStore.loaddjango/contrib/sessions/backends/db.py:553 ms4.0%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:343 ms4.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms4.0%
QuerySet.getdjango/db/models/query.py:7023 ms4.0%
QuerySet.__len__django/db/models/query.py:4213 ms4.0%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms4.0%
ModelIterable.__iter__django/db/models/query.py:1033 ms4.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms4.0%
CursorWrapper.executedjango/db/backends/utils.py:793 ms4.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms4.0%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms4.0%
Cursor.executepsycopg/cursor.py:1133 ms4.0%
Connection.waitpsycopg/connection.py:4953 ms4.0%
logindjango/contrib/auth/__init__.py:1893 ms4.0%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4372 ms2.0%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms2.0%
SessionStore.savedjango/contrib/sessions/backends/db.py:1270.79 ms1.0%
Model.savedjango/db/models/base.py:9040.79 ms1.0%
Model.save_basedjango/db/models/base.py:9960.79 ms1.0%
Model._save_tabledjango/db/models/base.py:11900.79 ms1.0%
SessionStore.savedjango/contrib/sessions/backends/db.py:1260.79 ms1.0%
Atomic.__exit__django/db/transaction.py:2590.79 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.79 ms1.0%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4310.79 ms1.0%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3750.79 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:790.79 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.79 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1030.79 ms1.0%
Cursor.executepsycopg/cursor.py:1130.79 ms1.0%
Connection.waitpsycopg/connection.py:4950.79 ms1.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.79 ms1.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.79 ms1.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.79 ms1.0%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4402 ms2.0%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1752 ms2.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:870.79 ms1.0%
QuerySet.getdjango/db/models/query.py:7020.79 ms1.0%
QuerySet.__len__django/db/models/query.py:4210.79 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:22620.79 ms1.0%
ModelIterable.__iter__django/db/models/query.py:1030.79 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16250.79 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:790.79 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.79 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1050.79 ms1.0%
Cursor.executepsycopg/cursor.py:1130.79 ms1.0%
Connection.waitpsycopg/connection.py:4950.79 ms1.0%
Model.deletedjango/db/models/base.py:13310.79 ms1.0%
Collector.deletedjango/db/models/deletion.py:4830.79 ms1.0%
DeleteQuery.delete_batchdjango/db/models/sql/subqueries.py:430.79 ms1.0%
DeleteQuery.do_querydjango/db/models/sql/subqueries.py:250.79 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16250.79 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:790.79 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.79 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1050.79 ms1.0%
Cursor.executepsycopg/cursor.py:1130.79 ms1.0%
Connection.waitpsycopg/connection.py:4950.79 ms1.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.79 ms1.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.79 ms1.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.79 ms1.0%
logindjango/contrib/auth/__init__.py:1980.79 ms1.0%
Signal.senddjango/dispatch/dispatcher.py:2490.79 ms1.0%
update_last_logindjango/contrib/auth/models.py:240.79 ms1.0%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:620.79 ms1.0%
Model.savedjango/db/models/base.py:9040.79 ms1.0%
Model.save_basedjango/db/models/base.py:9960.79 ms1.0%
Model._save_tabledjango/db/models/base.py:11400.79 ms1.0%
Model._do_updatedjango/db/models/base.py:12440.79 ms1.0%
QuerySet._updatedjango/db/models/query.py:14480.79 ms1.0%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21500.79 ms1.0%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21210.79 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16250.79 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:790.79 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.79 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1050.79 ms1.0%
Cursor.executepsycopg/cursor.py:1130.79 ms1.0%
Connection.waitpsycopg/connection.py:4950.79 ms1.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.79 ms1.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.79 ms1.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.79 ms1.0%
ClientMixin._logindjango/test/client.py:8910.79 ms1.0%
SessionStore.savedjango/contrib/sessions/backends/db.py:1270.79 ms1.0%
Model.savedjango/db/models/base.py:9040.79 ms1.0%
Model.save_basedjango/db/models/base.py:9960.79 ms1.0%
Model._save_tabledjango/db/models/base.py:11400.79 ms1.0%
Model._do_updatedjango/db/models/base.py:12440.79 ms1.0%
QuerySet._updatedjango/db/models/query.py:14480.79 ms1.0%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21500.79 ms1.0%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21210.79 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16250.79 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:790.79 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.79 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1050.79 ms1.0%
Cursor.executepsycopg/cursor.py:1130.79 ms1.0%
Connection.waitpsycopg/connection.py:4950.79 ms1.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.79 ms1.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.79 ms1.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.79 ms1.0%
TestPotatoqDashboard.test_inactive_staff_is_treated_as_logged_outfedidevs/tests.py:140 response = self.client.get("/potatoq/")12 ms15.1%
Client.getdjango/test/client.py:113312 ms15.1%
RequestFactory.getdjango/test/client.py:47512 ms15.1%
RequestFactory.genericdjango/test/client.py:67112 ms15.1%
Client.requestdjango/test/client.py:109112 ms15.1%
ClientHandler.__call__django/test/client.py:17312 ms15.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6312 ms15.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10411 ms14.1%
WhiteNoise.add_fileswhitenoise/base.py:10811 ms14.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1209 ms12.1%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1319 ms12.1%
WhiteNoise.get_static_filewhitenoise/base.py:2177 ms9.1%
StaticFile.__init__whitenoise/responders.py:723 ms4.0%
StaticFile.get_file_statswhitenoise/responders.py:1613 ms4.0%
__init____init__:-13 ms4.0%
FileEntry.__init__whitenoise/responders.py:2633 ms4.0%
FileEntry.stat_regular_filewhitenoise/responders.py:2763 ms4.0%
<GC>~3 ms4.0%
StaticFile.__init__whitenoise/responders.py:772 ms3.0%
StaticFile.get_alternativeswhitenoise/responders.py:2062 ms3.0%
StaticFile.__init__whitenoise/responders.py:740.79 ms1.0%
parsedate<stdlib>/email/_parseaddr.py:1850.79 ms1.0%
StaticFile.__init__whitenoise/responders.py:730.79 ms1.0%
StaticFile.get_headerswhitenoise/responders.py:1760.79 ms1.0%
WhiteNoise.get_static_filewhitenoise/base.py:2122 ms3.0%
WhiteNoise.add_cache_headerswhitenoise/base.py:2332 ms3.0%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms3.0%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms3.0%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms3.0%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2352 ms3.0%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2162 ms3.0%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2042 ms3.0%
filepath_to_uridjango/utils/encoding.py:2452 ms3.0%
quote<stdlib>/urllib/parse.py:10722 ms3.0%
quote_from_bytes<stdlib>/urllib/parse.py:11012 ms3.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms2.0%
scantreewhitenoise/base.py:2712 ms2.0%
scantreewhitenoise/base.py:2712 ms2.0%
scantreewhitenoise/base.py:2730.79 ms1.0%
scantreewhitenoise/base.py:2710.79 ms1.0%
scantreewhitenoise/base.py:2710.79 ms1.0%
scantreewhitenoise/base.py:2710.79 ms1.0%
scantreewhitenoise/base.py:2730.79 ms1.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:750.79 ms1.0%
Estimated from 98 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
fedidevs/tests.py:139
self.client.force_login(self.inactive_staff)
TestPotatoqDashboard.test_inactive_staff_is_treated_as_logged_out
· Database
|
65 ms |
|
fedidevs/tests.py:140
response = self.client.get("/potatoq/")
TestPotatoqDashboard.test_inactive_staff_is_treated_as_logged_out
· Libraries
|
12 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
22 queries · 19 msNo repeated queries.
Biggest pieces of work
|
call test body
fedidevs/tests.py:139
|
77 ms |
Reliability
7 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 7 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 78 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 108 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 115 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 70 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 137 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 101 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 87 ms | Profile |