Tests / apps/api/tests.py
ProfileUploadTest::test_reject_too_large
First seen 3 weeks ago in 78a4357
CI
github-actions:test
12 runs
Average
42 ms
median 41 ms
max 78 ms
max 78 ms
Phases
Setup 0.75 ms
Call 41 ms
Teardown 0.17 ms
Categories
Database 4 ms
Test code 0.15 ms
Other (Libraries, Unsampled, pytest, Serialization, ...) 38 ms
11 database queries per run
Needs 376 KB of memory (max 684 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 16 hours ago ·
open run
call37 ms98.0%
ProfileUploadTest.test_reject_too_largeapps/api/tests.py:61231 ms84.0%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(31 ms84.0%
Client.postdjango/test/client.py:115331 ms84.0%
RequestFactory.postdjango/test/client.py:49931 ms84.0%
RequestFactory.genericdjango/test/client.py:67131 ms84.0%
Client.requestdjango/test/client.py:108231 ms84.0%
ClientHandler.__call__django/test/client.py:17331 ms84.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6231 ms84.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10431 ms84.0%
WhiteNoise.add_fileswhitenoise/base.py:10831 ms84.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12021 ms56.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13121 ms56.0%
WhiteNoise.get_static_filewhitenoise/base.py:20810 ms28.0%
StaticFile.__init__whitenoise/responders.py:735 ms14.0%
StaticFile.get_headerswhitenoise/responders.py:1715 ms14.0%
StaticFile.__init__whitenoise/responders.py:775 ms14.0%
StaticFile.get_alternativeswhitenoise/responders.py:2005 ms14.0%
WhiteNoise.get_static_filewhitenoise/base.py:2035 ms14.0%
WhiteNoise.add_cache_headerswhitenoise/base.py:2245 ms14.0%
WhiteNoise.get_static_filewhitenoise/base.py:2025 ms14.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11510 ms28.0%
scantreewhitenoise/base.py:26210 ms28.0%
scantreewhitenoise/base.py:26210 ms28.0%
scantreewhitenoise/base.py:26210 ms28.0%
scantreewhitenoise/base.py:26210 ms28.0%
scantreewhitenoise/base.py:2625 ms14.0%
ProfileUploadTest.test_reject_too_largeapps/api/tests.py:610 body = gzip.compress(json.dumps(self.document()).encode())5 ms14.0%
compress<stdlib>/gzip.py:6685 ms14.0%
Estimated from 7 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/api/tests.py:487
response = self.client.post(
ProfileUploadTest.upload
· Libraries
|
31 ms |
|
apps/api/tests.py:610
body = gzip.compress(json.dumps(self.document()).encode())
ProfileUploadTest.test_reject_too_large
· Libraries
|
5 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.03 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.02 ms |
Database
11 queries · 3 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/api/tests.py:610
|
37 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 | 37 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 22 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 | 35 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 60 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 29 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 78 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 42 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 41 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 57 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 26 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 41 ms | Profile |