Tests / apps/projects/tests.py
ProjectCreatePage::test_not_logged_in
First seen 2 years, 11 months ago in b9e98d9
CI
github-actions:test
15 runs
Average
42 ms
median 46 ms
max 59 ms
max 59 ms
Phases
Setup 0.68 ms
Call 41 ms
Teardown 1 ms
Categories
Database 16 ms
Other (Libraries, Unsampled, pytest, Serialization) 26 ms
24 database queries per run
Needs 366 KB of memory (max 772 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call33 ms96.9%
ProjectCreatePage.test_not_logged_inapps/projects/tests.py:223 response = self.client.get("/projects/create/")15 ms45.6%
Client.getdjango/test/client.py:112415 ms45.6%
RequestFactory.getdjango/test/client.py:47515 ms45.6%
RequestFactory.genericdjango/test/client.py:67115 ms45.6%
Client.requestdjango/test/client.py:108215 ms45.6%
ClientHandler.__call__django/test/client.py:17315 ms45.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6215 ms45.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10415 ms45.6%
WhiteNoise.add_fileswhitenoise/base.py:10815 ms45.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12014 ms39.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13114 ms39.9%
WhiteNoise.get_static_filewhitenoise/base.py:20812 ms34.2%
StaticFile.__init__whitenoise/responders.py:774 ms11.4%
StaticFile.get_alternativeswhitenoise/responders.py:2004 ms11.4%
__init____init__:-14 ms11.4%
Headers.__init__<stdlib>/wsgiref/headers.py:442 ms5.7%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:492 ms5.7%
StaticFile.__init__whitenoise/responders.py:734 ms11.4%
StaticFile.get_headerswhitenoise/responders.py:1762 ms5.7%
StaticFile.get_headerswhitenoise/responders.py:1672 ms5.7%
StaticFile.__init__whitenoise/responders.py:722 ms5.7%
StaticFile.get_file_statswhitenoise/responders.py:1592 ms5.7%
WhiteNoise.get_static_filewhitenoise/base.py:2032 ms5.7%
WhiteNoise.add_cache_headerswhitenoise/base.py:2242 ms5.7%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms5.7%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms5.7%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms5.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms5.7%
scantreewhitenoise/base.py:2622 ms5.7%
scantreewhitenoise/base.py:2622 ms5.7%
scantreewhitenoise/base.py:2622 ms5.7%
scantreewhitenoise/base.py:2622 ms5.7%
scantreewhitenoise/base.py:2622 ms5.7%
scantreewhitenoise/base.py:2602 ms5.7%
ProjectCreatePage.setUpapps/projects/tests.py:219 self.client.force_login(self.user)10 ms28.5%
ClientMixin.force_logindjango/test/client.py:85510 ms28.5%
ClientMixin._logindjango/test/client.py:8836 ms17.1%
SessionStore.savedjango/contrib/sessions/backends/db.py:1236 ms17.1%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1024 ms11.4%
SessionBase.encodedjango/contrib/sessions/backends/base.py:1264 ms11.4%
dumpsdjango/core/signing.py:1514 ms11.4%
Signer.sign_objectdjango/core/signing.py:2262 ms5.7%
JSONSerializer.dumpsdjango/core/signing.py:1262 ms5.7%
dumps<stdlib>/json/__init__.py:2412 ms5.7%
JSONEncoder.encode<stdlib>/json/encoder.py:2022 ms5.7%
JSONEncoder.iterencode<stdlib>/json/encoder.py:2542 ms5.7%
Signer.sign_objectdjango/core/signing.py:2322 ms5.7%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1002 ms5.7%
Model.__init__django/db/models/base.py:5332 ms5.7%
ClientMixin._logindjango/test/client.py:8814 ms11.4%
logindjango/contrib/auth/__init__.py:1974 ms11.4%
Signal.senddjango/dispatch/dispatcher.py:2094 ms11.4%
update_last_logindjango/contrib/auth/models.py:244 ms11.4%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:624 ms11.4%
Model.savedjango/db/models/base.py:8744 ms11.4%
Model.save_basedjango/db/models/base.py:9664 ms11.4%
Model._save_tabledjango/db/models/base.py:11104 ms11.4%
Model._do_updatedjango/db/models/base.py:12114 ms11.4%
QuerySet._updatedjango/db/models/query.py:13274 ms11.4%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21404 ms11.4%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21114 ms11.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16244 ms11.4%
CursorWrapper.executedjango/db/backends/utils.py:794 ms11.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms11.4%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms11.4%
Cursor.executepsycopg/cursor.py:1134 ms11.4%
Connection.waitpsycopg/connection.py:4954 ms11.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms11.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms11.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms11.4%
ProjectCreatePage.test_not_logged_inapps/projects/tests.py:222 self.client.logout()6 ms17.1%
ClientMixin.logoutdjango/test/client.py:9274 ms11.4%
logoutdjango/contrib/auth/__init__.py:2584 ms11.4%
SessionBase.flushdjango/contrib/sessions/backends/base.py:4204 ms11.4%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1754 ms11.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms5.7%
QuerySet.getdjango/db/models/query.py:6252 ms5.7%
Model.deletedjango/db/models/base.py:12982 ms5.7%
Collector.deletedjango/db/models/deletion.py:4522 ms5.7%
DeleteQuery.delete_batchdjango/db/models/sql/subqueries.py:432 ms5.7%
DeleteQuery.do_querydjango/db/models/sql/subqueries.py:252 ms5.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms5.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms5.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms5.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms5.7%
Cursor.executepsycopg/cursor.py:1132 ms5.7%
Connection.waitpsycopg/connection.py:4952 ms5.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms5.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms5.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms5.7%
ClientMixin.logoutdjango/test/client.py:9232 ms5.7%
get_userdjango/contrib/auth/__init__.py:3112 ms5.7%
_get_user_session_keydjango/contrib/auth/__init__.py:952 ms5.7%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:552 ms5.7%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2512 ms5.7%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms5.7%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms5.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms5.7%
QuerySet.getdjango/db/models/query.py:6352 ms5.7%
QuerySet.__len__django/db/models/query.py:3722 ms5.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms5.7%
ModelIterable.__iter__django/db/models/query.py:952 ms5.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms5.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms5.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms5.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms5.7%
Cursor.executepsycopg/cursor.py:1132 ms5.7%
Connection.waitpsycopg/connection.py:4952 ms5.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms5.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms5.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms5.7%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms5.7%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms5.7%
TestCase._rollback_atomicsdjango/test/testcases.py:14052 ms5.7%
Atomic.__exit__django/db/transaction.py:2862 ms5.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms5.7%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms5.7%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms5.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms5.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms5.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms5.7%
Cursor.executepsycopg/cursor.py:1132 ms5.7%
Connection.waitpsycopg/connection.py:4952 ms5.7%
Estimated from 17 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/projects/tests.py:223
response = self.client.get("/projects/create/")
ProjectCreatePage.test_not_logged_in
· Libraries
|
15 ms |
|
apps/projects/tests.py:219
self.client.force_login(self.user)
ProjectCreatePage.setUp
· Database
|
10 ms |
|
apps/projects/tests.py:222
self.client.logout()
ProjectCreatePage.test_not_logged_in
· Database
|
6 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 |
| _live_server_helper function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
24 queries · 4 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/projects/tests.py:222
|
21 ms |
|
call setUp
apps/projects/tests.py:219
|
10 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
2 ms |
Reliability
15 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 15 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 34 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 51 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 26 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 49 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 24 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 49 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 38 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 57 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 27 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 49 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 58 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 46 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 59 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 24 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 45 ms | Profile |