Tests / mastodon_auth/tests.py
MastodonLoginViewTests::test_create_app_failure_without_existing_credentials_errors
First seen 5 months ago in 553d048
CI
github-actions:test
13 runs
Average
121 ms
median 101 ms
max 235 ms
max 235 ms
Phases
Setup 14 ms
Call 106 ms
Teardown 0.57 ms
Categories
Database 30 ms
Other (Mocking, pytest, Unsampled, Libraries, ...) 91 ms
7 database queries per run
Needs 7 KB of memory (max 64 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup11 ms11.2%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()11 ms11.2%
TestCase._enter_atomicsdjango/test/testcases.py:139911 ms11.2%
Atomic.__enter__django/db/transaction.py:21011 ms11.2%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45411 ms11.2%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30411 ms11.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms11.2%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27911 ms11.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms11.2%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25611 ms11.2%
DatabaseWrapper.get_new_connectionfedidevs/db/postgresql/base.py:39 return super().get_new_connection(conn_params)11 ms11.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms11.2%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34511 ms11.2%
Connection.connectpsycopg/connection.py:10911 ms11.2%
wait_connpsycopg/waiting.py:1415 ms5.6%
EpollSelector.select<stdlib>/selectors.py:4525 ms5.6%
wait_connpsycopg/waiting.py:1454 ms4.5%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms4.5%
wait_connpsycopg/waiting.py:1361 ms1.1%
BaseConnection._connect_genpsycopg/_connection_base.py:4391 ms1.1%
call85 ms88.4%
MastodonLoginViewTests.test_create_app_failure_without_existing_credentials_errorsmastodon_auth/tests.py:195 response = self.client.post("/mastodon_login/", {"instance": "det.social"})82 ms86.0%
Client.postdjango/test/client.py:116282 ms86.0%
RequestFactory.postdjango/test/client.py:49982 ms86.0%
RequestFactory.genericdjango/test/client.py:67182 ms86.0%
Client.requestdjango/test/client.py:109182 ms86.0%
ClientHandler.__call__django/test/client.py:17382 ms86.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6382 ms86.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10482 ms86.0%
WhiteNoise.add_fileswhitenoise/base.py:10882 ms86.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12069 ms71.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13160 ms62.1%
WhiteNoise.get_static_filewhitenoise/base.py:21746 ms47.8%
StaticFile.__init__whitenoise/responders.py:7625 ms26.3%
StaticFile.get_not_modified_responsewhitenoise/responders.py:19021 ms21.5%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms2.4%
StaticFile.__init__whitenoise/responders.py:7711 ms11.9%
StaticFile.get_alternativeswhitenoise/responders.py:2019 ms9.6%
Headers.__setitem__<stdlib>/wsgiref/headers.py:647 ms7.2%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:507 ms7.2%
<unknown function><unknown file>2 ms2.4%
Headers.__setitem__<stdlib>/wsgiref/headers.py:642 ms2.4%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:492 ms2.4%
StaticFile.get_alternativeswhitenoise/responders.py:1982 ms2.4%
<GC>~2 ms2.4%
StaticFile.__init__whitenoise/responders.py:725 ms4.8%
StaticFile.get_file_statswhitenoise/responders.py:1572 ms2.4%
__init____init__:-12 ms2.4%
StaticFile.__init__whitenoise/responders.py:742 ms2.4%
parsedate<stdlib>/email/_parseaddr.py:1852 ms2.4%
WhiteNoise.get_static_filewhitenoise/base.py:21214 ms14.3%
WhiteNoise.add_cache_headerswhitenoise/base.py:23314 ms14.3%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:17614 ms14.3%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:19714 ms14.3%
URLMixin.urldebug_toolbar/panels/staticfiles.py:207 ms7.2%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2355 ms4.8%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2142 ms2.4%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2162 ms2.4%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2072 ms2.4%
urljoin<stdlib>/urllib/parse.py:7432 ms2.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1237 ms7.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11514 ms14.3%
scantreewhitenoise/base.py:27111 ms11.9%
scantreewhitenoise/base.py:27111 ms11.9%
scantreewhitenoise/base.py:2717 ms7.2%
scantreewhitenoise/base.py:2717 ms7.2%
scantreewhitenoise/base.py:2717 ms7.2%
scantreewhitenoise/base.py:2737 ms7.2%
scantreewhitenoise/base.py:2732 ms2.4%
scantreewhitenoise/base.py:2692 ms2.4%
scantreewhitenoise/base.py:2732 ms2.4%
Estimated from 47 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
mastodon_auth/tests.py:195
response = self.client.post("/mastodon_login/", {"instance": "det.social"})
MastodonLoginViewTests.test_create_app_failure_without_existing_credentials_errors
· Mocking
|
82 ms |
|
fedidevs/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection
· Database
|
11 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_MastodonLoginViewTests class | 10 ms |
| _django_setup_unittest class | 0.33 ms |
| _django_clear_site_cache function | 0.04 ms |
| _django_db_marker function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _live_server_helper function | 0.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
7 queries · 7 msNo repeated queries.
Biggest pieces of work
|
call test body
mastodon_auth/tests.py:195
|
82 ms |
|
setup setUpClass
django/test/testcases.py:1426
|
11 ms |
Reliability
14 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 14 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 96 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 101 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 121 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 67 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 99 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 95 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 65 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 127 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 102 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 70 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 201 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 196 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 235 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 84 ms | Run |