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

ProjectTestsPage::test_other_peoples_project

First seen 2 years, 10 months ago in d87c7a8
CI github-actions:test 12 runs
Average
48 ms
median 52 ms
max 68 ms
Phases
Setup 0.69 ms Call 47 ms Teardown 0.16 ms
Categories
Database 26 ms Test code 0.30 ms Other (Libraries, pytest, Unsampled, Deep copies) 21 ms

28 database queries per run

Needs 385 KB of memory (max 860 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
call53 ms98.3%
ProjectTestsPage.test_other_peoples_projectapps/projects/tests.py:349 response = self.client.get(other_project.url("project_tests"))36 ms65.5%
Client.getdjango/test/client.py:112432 ms59.0%
RequestFactory.getdjango/test/client.py:47532 ms59.0%
RequestFactory.genericdjango/test/client.py:67132 ms59.0%
Client.requestdjango/test/client.py:108232 ms59.0%
ClientHandler.__call__django/test/client.py:17332 ms59.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6232 ms59.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10425 ms45.9%
WhiteNoise.add_fileswhitenoise/base.py:10825 ms45.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12021 ms39.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13121 ms39.3%
WhiteNoise.get_static_filewhitenoise/base.py:20311 ms19.7%
WhiteNoise.add_cache_headerswhitenoise/base.py:22411 ms19.7%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:17611 ms19.7%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:19711 ms19.7%
URLMixin.urldebug_toolbar/panels/staticfiles.py:207 ms13.1%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2054 ms6.6%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1844 ms6.6%
WhiteNoise.get_static_filewhitenoise/base.py:20811 ms19.7%
StaticFile.__init__whitenoise/responders.py:767 ms13.1%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1894 ms6.6%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1884 ms6.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms6.6%
scantreewhitenoise/base.py:2624 ms6.6%
scantreewhitenoise/base.py:2624 ms6.6%
scantreewhitenoise/base.py:2644 ms6.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1117 ms13.1%
WhiteNoise.add_fileswhitenoise/base.py:1087 ms13.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms6.6%
scantreewhitenoise/base.py:2644 ms6.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1204 ms6.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1314 ms6.6%
WhiteNoise.get_static_filewhitenoise/base.py:2024 ms6.6%
WhiteNoise.add_mime_headerswhitenoise/base.py:2214 ms6.6%
ProjectTestsPage.setUpapps/projects/tests.py:338 self.client.force_login(self.user)14 ms26.2%
ClientMixin.force_logindjango/test/client.py:85514 ms26.2%
ClientMixin._logindjango/test/client.py:8767 ms13.1%
ClientMixin.sessiondjango/test/client.py:8127 ms13.1%
SessionStore.savedjango/contrib/sessions/backends/db.py:1217 ms13.1%
SessionStore.createdjango/contrib/sessions/backends/db.py:704 ms6.6%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1984 ms6.6%
SessionStore.existsdjango/contrib/sessions/backends/db.py:634 ms6.6%
QuerySet.existsdjango/db/models/query.py:13374 ms6.6%
Query.has_resultsdjango/db/models/sql/query.py:6814 ms6.6%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15924 ms6.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16244 ms6.6%
CursorWrapper.executedjango/db/backends/utils.py:794 ms6.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms6.6%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms6.6%
Cursor.executepsycopg/cursor.py:1134 ms6.6%
Connection.waitpsycopg/connection.py:4954 ms6.6%
SessionStore.createdjango/contrib/sessions/backends/db.py:744 ms6.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1264 ms6.6%
Atomic.__exit__django/db/transaction.py:2474 ms6.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms6.6%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4314 ms6.6%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3754 ms6.6%
CursorWrapper.executedjango/db/backends/utils.py:794 ms6.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms6.6%
CursorWrapper._executedjango/db/backends/utils.py:1034 ms6.6%
Cursor.executepsycopg/cursor.py:1134 ms6.6%
Connection.waitpsycopg/connection.py:4954 ms6.6%
ClientMixin._logindjango/test/client.py:8814 ms6.6%
logindjango/contrib/auth/__init__.py:1974 ms6.6%
Signal.senddjango/dispatch/dispatcher.py:2094 ms6.6%
update_last_logindjango/contrib/auth/models.py:244 ms6.6%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:624 ms6.6%
Model.savedjango/db/models/base.py:8744 ms6.6%
Model.save_basedjango/db/models/base.py:9664 ms6.6%
Model._save_tabledjango/db/models/base.py:11104 ms6.6%
Model._do_updatedjango/db/models/base.py:12114 ms6.6%
QuerySet._updatedjango/db/models/query.py:13274 ms6.6%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21404 ms6.6%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21114 ms6.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16244 ms6.6%
CursorWrapper.executedjango/db/backends/utils.py:794 ms6.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms6.6%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms6.6%
Cursor.executepsycopg/cursor.py:1134 ms6.6%
Connection.waitpsycopg/connection.py:4954 ms6.6%
ClientMixin._logindjango/test/client.py:8834 ms6.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1274 ms6.6%
Model.savedjango/db/models/base.py:8744 ms6.6%
Model.save_basedjango/db/models/base.py:9664 ms6.6%
Model._save_tabledjango/db/models/base.py:11104 ms6.6%
Model._do_updatedjango/db/models/base.py:12114 ms6.6%
QuerySet._updatedjango/db/models/query.py:13274 ms6.6%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21404 ms6.6%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21114 ms6.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16244 ms6.6%
CursorWrapper.executedjango/db/backends/utils.py:794 ms6.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms6.6%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms6.6%
Cursor.executepsycopg/cursor.py:1134 ms6.6%
Connection.waitpsycopg/connection.py:4954 ms6.6%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()4 ms6.6%
TestCase._fixture_setupdjango/test/testcases.py:14784 ms6.6%
TestCase._enter_atomicsdjango/test/testcases.py:13964 ms6.6%
Atomic.__enter__django/db/transaction.py:2114 ms6.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms6.6%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4004 ms6.6%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3674 ms6.6%
CursorWrapper.executedjango/db/backends/utils.py:794 ms6.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms6.6%
Estimated from 15 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:349
response = self.client.get(other_project.url("project_tests"))
ProjectTestsPage.test_other_peoples_project · Libraries
36 ms
apps/projects/tests.py:338
self.client.force_login(self.user)
ProjectTestsPage.setUp · Database
14 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.05 ms
_django_clear_site_cache function 0.05 ms
_django_db_marker 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
monkeypatch function 0.02 ms

Database

28 queries · 8 ms
No repeated queries.

Biggest pieces of work

call test body
apps/projects/tests.py:349
36 ms
call setUp
apps/projects/tests.py:338
14 ms
call _pre_setup
django/test/testcases.py:1164
4 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 54 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 30 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 48 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 41 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 68 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 53 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 52 ms 9caa567 main Profile
2 weeks, 6 days ago CI github-actions:test passed 56 ms ec75501 main Profile
3 weeks ago CI github-actions:test passed 60 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 27 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 56 ms 78a4357 main Profile