flakytest.dev anze3db flakytest
Tests / apps/projects/tests.py

ProjectsPageTest::test_not_logged_in

First seen 2 years, 10 months ago in b9e98d9
CI github-actions:test 12 runs
Average
55 ms
median 50 ms
max 182 ms
Phases
Setup 0.72 ms Call 54 ms Teardown 0.18 ms
Categories
Database 12 ms Other (Libraries, pytest, Unsampled) 43 ms

24 database queries per run

Needs 27 KB of memory (max 316 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
setup0.78 ms1.3%
call60 ms98.4%
ProjectsPageTest.test_not_logged_inapps/projects/tests.py:105 response = self.client.get("/projects/")30 ms49.2%
Client.getdjango/test/client.py:112430 ms49.2%
RequestFactory.getdjango/test/client.py:47530 ms49.2%
RequestFactory.genericdjango/test/client.py:67130 ms49.2%
Client.requestdjango/test/client.py:108230 ms49.2%
ClientHandler.__call__django/test/client.py:17330 ms49.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6220 ms32.8%
__init____init__:-120 ms32.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10420 ms32.8%
WhiteNoise.add_fileswhitenoise/base.py:10820 ms32.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12020 ms32.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13120 ms32.8%
WhiteNoise.get_static_filewhitenoise/base.py:20310 ms16.4%
WhiteNoise.add_cache_headerswhitenoise/base.py:22410 ms16.4%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1765 ms8.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1975 ms8.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:205 ms8.2%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2055 ms8.2%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1785 ms8.2%
WhiteNoise.get_static_filewhitenoise/base.py:2025 ms8.2%
WhiteNoise.add_mime_headerswhitenoise/base.py:2165 ms8.2%
WhiteNoise.get_static_filewhitenoise/base.py:2085 ms8.2%
StaticFile.__init__whitenoise/responders.py:725 ms8.2%
StaticFile.get_file_statswhitenoise/responders.py:1575 ms8.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:9610 ms16.4%
convert_exception_to_responsedjango/core/handlers/exception.py:525 ms8.2%
__init____init__:-15 ms8.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1045 ms8.2%
WhiteNoise.add_fileswhitenoise/base.py:1085 ms8.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms8.2%
scantreewhitenoise/base.py:2625 ms8.2%
scantreewhitenoise/base.py:2625 ms8.2%
scantreewhitenoise/base.py:2625 ms8.2%
scantreewhitenoise/base.py:2625 ms8.2%
scantreewhitenoise/base.py:2625 ms8.2%
scantreewhitenoise/base.py:2645 ms8.2%
ProjectsPageTest.setUpapps/projects/tests.py:101 self.client.force_login(self.user)20 ms32.8%
ClientMixin.force_logindjango/test/client.py:85520 ms32.8%
ClientMixin._logindjango/test/client.py:88115 ms24.6%
logindjango/contrib/auth/__init__.py:18710 ms16.4%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4345 ms8.2%
SessionStore.createdjango/contrib/sessions/backends/db.py:745 ms8.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1275 ms8.2%
Model.savedjango/db/models/base.py:8745 ms8.2%
Model.save_basedjango/db/models/base.py:9665 ms8.2%
Model._save_tabledjango/db/models/base.py:11675 ms8.2%
Model._do_insertdjango/db/models/base.py:12185 ms8.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:875 ms8.2%
QuerySet._insertdjango/db/models/query.py:19185 ms8.2%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19255 ms8.2%
CursorWrapper.executedjango/db/backends/utils.py:795 ms8.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms8.2%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms8.2%
Cursor.executepsycopg/cursor.py:1135 ms8.2%
Connection.waitpsycopg/connection.py:4955 ms8.2%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4375 ms8.2%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1755 ms8.2%
Model.deletedjango/db/models/base.py:12985 ms8.2%
Collector.deletedjango/db/models/deletion.py:4505 ms8.2%
Collector.can_fast_deletedjango/db/models/deletion.py:2055 ms8.2%
logindjango/contrib/auth/__init__.py:1975 ms8.2%
Signal.senddjango/dispatch/dispatcher.py:2095 ms8.2%
update_last_logindjango/contrib/auth/models.py:245 ms8.2%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:625 ms8.2%
Model.savedjango/db/models/base.py:8745 ms8.2%
Model.save_basedjango/db/models/base.py:9665 ms8.2%
Model._save_tabledjango/db/models/base.py:11105 ms8.2%
Model._do_updatedjango/db/models/base.py:12115 ms8.2%
QuerySet._updatedjango/db/models/query.py:13275 ms8.2%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21405 ms8.2%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21115 ms8.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16245 ms8.2%
CursorWrapper.executedjango/db/backends/utils.py:795 ms8.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms8.2%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms8.2%
Cursor.executepsycopg/cursor.py:1135 ms8.2%
Connection.waitpsycopg/connection.py:4955 ms8.2%
ClientMixin._logindjango/test/client.py:8835 ms8.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1265 ms8.2%
Atomic.__exit__django/db/transaction.py:2475 ms8.2%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()5 ms8.2%
TestCase._fixture_setupdjango/test/testcases.py:14785 ms8.2%
TestCase._enter_atomicsdjango/test/testcases.py:13965 ms8.2%
Atomic.__enter__django/db/transaction.py:2115 ms8.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms8.2%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4005 ms8.2%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3675 ms8.2%
CursorWrapper.executedjango/db/backends/utils.py:795 ms8.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms8.2%
CursorWrapper._executedjango/db/backends/utils.py:1035 ms8.2%
Cursor.executepsycopg/cursor.py:1135 ms8.2%
Connection.waitpsycopg/connection.py:4955 ms8.2%
ProjectsPageTest.test_not_logged_inapps/projects/tests.py:104 self.client.logout()5 ms8.2%
ClientMixin.logoutdjango/test/client.py:9275 ms8.2%
logoutdjango/contrib/auth/__init__.py:2585 ms8.2%
SessionBase.flushdjango/contrib/sessions/backends/base.py:4205 ms8.2%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1755 ms8.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:875 ms8.2%
QuerySet.getdjango/db/models/query.py:6355 ms8.2%
QuerySet.__len__django/db/models/query.py:3725 ms8.2%
QuerySet._fetch_alldjango/db/models/query.py:20005 ms8.2%
ModelIterable.__iter__django/db/models/query.py:955 ms8.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16245 ms8.2%
CursorWrapper.executedjango/db/backends/utils.py:795 ms8.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms8.2%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms8.2%
Cursor.executepsycopg/cursor.py:1135 ms8.2%
Connection.waitpsycopg/connection.py:4955 ms8.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2065 ms8.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2865 ms8.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:785 ms8.2%
Estimated from 13 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:105
response = self.client.get("/projects/")
ProjectsPageTest.test_not_logged_in · Libraries
30 ms
apps/projects/tests.py:101
self.client.force_login(self.user)
ProjectsPageTest.setUp · Database
20 ms
apps/projects/tests.py:104
self.client.logout()
ProjectsPageTest.test_not_logged_in · Database
5 ms

Fixtures

Exact setup time
_django_db_marker function 0.06 ms
_dj_autoclear_mailbox function 0.04 ms
_template_string_if_invalid_marker function 0.04 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

24 queries · 6 ms
No repeated queries.

Biggest pieces of work

call test body
apps/projects/tests.py:104
35 ms
call setUp
apps/projects/tests.py:101
20 ms
call _pre_setup
django/test/testcases.py:1164
5 ms
setup pytest internals 0.78 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
16 hours ago CI github-actions:test passed 61 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 28 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 50 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 30 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 51 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 30 ms b3fedae main Profile
2 weeks, 4 days ago CI github-actions:test passed 51 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 50 ms 9caa567 main Profile
2 weeks, 6 days ago CI github-actions:test passed 49 ms ec75501 main Profile
3 weeks ago CI github-actions:test passed 182 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 25 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 56 ms 78a4357 main Profile