Tests / apps/orgs/tests.py
AccessTest::test_public_projects_are_readable_by_anyone
First seen 3 weeks ago in 78a4357
CI
github-actions:test
12 runs
Average
39 ms
median 41 ms
max 58 ms
max 58 ms
Phases
Setup 0.68 ms
Call 38 ms
Teardown 0.16 ms
Categories
Database 9 ms
Test code 0.23 ms
App code 0.17 ms
Other (Libraries, Unsampled, Templates, pytest) 29 ms
9 database queries per run
Needs 493 KB of memory (max 880 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 16 hours ago ·
open run
call50 ms98.1%
AccessTest.test_public_projects_are_readable_by_anyoneapps/orgs/tests.py:76 self.assertEqual(self.client.get(self.project.url()).status_code, 200)43 ms84.1%
Client.getdjango/test/client.py:112443 ms84.1%
RequestFactory.getdjango/test/client.py:47543 ms84.1%
RequestFactory.genericdjango/test/client.py:67143 ms84.1%
Client.requestdjango/test/client.py:108243 ms84.1%
ClientHandler.__call__django/test/client.py:17343 ms84.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6243 ms84.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10443 ms84.1%
WhiteNoise.add_fileswhitenoise/base.py:10843 ms84.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12036 ms70.1%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13136 ms70.1%
WhiteNoise.get_static_filewhitenoise/base.py:20829 ms56.1%
StaticFile.__init__whitenoise/responders.py:7314 ms28.0%
StaticFile.get_headerswhitenoise/responders.py:1777 ms14.0%
StaticFile.get_headerswhitenoise/responders.py:1767 ms14.0%
StaticFile.__init__whitenoise/responders.py:7214 ms28.0%
StaticFile.get_file_statswhitenoise/responders.py:1597 ms14.0%
WhiteNoise.get_static_filewhitenoise/base.py:2027 ms14.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1157 ms14.0%
scantreewhitenoise/base.py:2647 ms14.0%
AccessTest.test_public_projects_are_readable_by_anyoneapps/orgs/tests.py:75 Project.objects.filter(pk=self.project.pk).update(public=True)7 ms14.0%
QuerySet.updatedjango/db/models/query.py:13007 ms14.0%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21117 ms14.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16247 ms14.0%
CursorWrapper.executedjango/db/backends/utils.py:797 ms14.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms14.0%
CursorWrapper._executedjango/db/backends/utils.py:1057 ms14.0%
Cursor.executepsycopg/cursor.py:1137 ms14.0%
Connection.waitpsycopg/connection.py:4957 ms14.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2067 ms14.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2867 ms14.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:787 ms14.0%
Estimated from 7 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/orgs/tests.py:76
self.assertEqual(self.client.get(self.project.url()).status_code, 200)
AccessTest.test_public_projects_are_readable_by_anyone
· Libraries
|
43 ms |
|
apps/orgs/tests.py:75
Project.objects.filter(pk=self.project.pk).update(public=True)
AccessTest.test_public_projects_are_readable_by_anyone
· Database
|
7 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.05 ms |
| _django_db_marker function | 0.04 ms |
| _django_set_urlconf function | 0.04 ms |
| _live_server_helper function | 0.04 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
9 queries · 3 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/orgs/tests.py:75
|
50 ms |
Reliability
12 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 12 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 16 hours ago | CI github-actions:test | passed | 51 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 23 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 38 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 41 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 58 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 26 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 43 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 41 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 41 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 44 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 19 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 39 ms | Profile |