Tests / apps/api/tests.py
ProfileUploadTest::test_get_not_allowed
First seen 1 month, 1 week ago in 78a4357
CI
github-actions:test
15 runs
Average
32 ms
median 36 ms
max 49 ms
max 49 ms
Phases
Setup 0.65 ms
Call 31 ms
Teardown 0.16 ms
Categories
Database 3 ms
Other (Libraries, Unsampled, pytest, Cache) 28 ms
5 database queries per run
Needs 29 KB of memory (max 364 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call27 ms97.5%
ProfileUploadTest.test_get_not_allowedapps/api/tests.py:626 response = self.client.get("/api/v1/profile", headers={"Authorization": self.secret_token})25 ms89.4%
Client.getdjango/test/client.py:112425 ms89.4%
RequestFactory.getdjango/test/client.py:47525 ms89.4%
RequestFactory.genericdjango/test/client.py:67125 ms89.4%
Client.requestdjango/test/client.py:108225 ms89.4%
ClientHandler.__call__django/test/client.py:17325 ms89.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6225 ms89.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10425 ms89.4%
WhiteNoise.add_fileswhitenoise/base.py:10825 ms89.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12023 ms81.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13123 ms81.3%
WhiteNoise.get_static_filewhitenoise/base.py:20820 ms73.2%
StaticFile.__init__whitenoise/responders.py:7718 ms65.0%
StaticFile.get_alternativeswhitenoise/responders.py:20416 ms56.9%
compile<stdlib>/re/__init__.py:28916 ms56.9%
<GC>~16 ms56.9%
StaticFile.get_alternativeswhitenoise/responders.py:1982 ms8.1%
StaticFile.get_alternatives.<locals>.<lambda>whitenoise/responders.py:1982 ms8.1%
<GC>~2 ms8.1%
StaticFile.__init__whitenoise/responders.py:732 ms8.1%
StaticFile.get_headerswhitenoise/responders.py:1782 ms8.1%
WhiteNoise.get_static_filewhitenoise/base.py:2032 ms8.1%
WhiteNoise.add_cache_headerswhitenoise/base.py:2242 ms8.1%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms8.1%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms8.1%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms8.1%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms8.1%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1842 ms8.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms8.1%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms8.1%
TestCase._rollback_atomicsdjango/test/testcases.py:14052 ms8.1%
Atomic.__exit__django/db/transaction.py:2862 ms8.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms8.1%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms8.1%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms8.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms8.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms8.1%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms8.1%
Cursor.executepsycopg/cursor.py:1132 ms8.1%
Connection.waitpsycopg/connection.py:4952 ms8.1%
Estimated from 12 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/api/tests.py:626
response = self.client.get("/api/v1/profile", headers={"Authorization": self.secret_token})
ProfileUploadTest.test_get_not_allowed
· Libraries
|
25 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 |
| _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.01 ms |
Database
5 queries · 0.56 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/api/tests.py:626
|
25 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 | 28 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 37 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 18 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 49 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 16 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 27 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 28 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 41 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 22 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 36 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 36 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 36 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 37 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 22 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 39 ms | Profile |