Tests / mastodon_auth/tests.py
RegisterAppTests::test_raises_when_credentials_missing_from_body
First seen 5 months ago in 553d048
CI
github-actions:test
13 runs
Average
4 ms
median 3 ms
max 11 ms
max 11 ms
Phases
Setup 2 ms
Call 2 ms
Teardown 0.26 ms
Categories
Other (Unsampled, pytest, Mocking, Libraries) 4 ms
Needs 4 KB of memory (max 16 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup2 ms52.3%
__init____init__:-12 ms52.3%
signature<stdlib>/inspect.py:33432 ms52.3%
Signature.from_callable<stdlib>/inspect.py:30582 ms52.3%
_signature_from_callable<stdlib>/inspect.py:25282 ms52.3%
_signature_from_function<stdlib>/inspect.py:23512 ms52.3%
call1 ms42.0%
RegisterAppTests.test_raises_when_credentials_missing_from_bodymastodon_auth/tests.py:272 resp = MagicMock(status_code=200)1 ms42.0%
MagicMixin.__init__<stdlib>/unittest/mock.py:21861 ms42.0%
Estimated from 3 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
mastodon_auth/tests.py:272
resp = MagicMock(status_code=200)
RegisterAppTests.test_raises_when_credentials_missing_from_body
· Mocking
|
1 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.57 ms |
| _django_setup_unittest class | 0.06 ms |
| _unittest_setUpClass_fixture_RegisterAppTests class | 0.06 ms |
| _django_db_marker function | 0.03 ms |
| _live_server_helper function | 0.02 ms |
| _django_isolate_apps function | 0.02 ms |
| _django_set_urlconf function | 0.02 ms |
| _dj_autoclear_mailbox function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Biggest pieces of work
|
setup __init__
__init__:-1
|
2 ms |
|
call test body
mastodon_auth/tests.py:272
|
1 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 | 3 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 3 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 3 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 2 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 4 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 3 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 3 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 3 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 3 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 2 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 5 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 3 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 11 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 1 ms | Run |