flakytest.dev anze3db fedidevs
Tests / starter_packs/tests.py

TestEditStarterPackAccounts::test_not_logged_in

First seen 2 years ago in 1b5db0c
CI github-actions:test 13 runs
Average
127 ms
median 101 ms
max 261 ms
Phases
Setup 5 ms Call 121 ms Teardown 0.85 ms
Categories
Database 24 ms Factories 0.16 ms Other (Libraries, Templates, pytest, Unsampled, ...) 103 ms

8 database queries per run

Needs 251 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup21 ms9.1%
TestCase.setUpClassdjango/test/testcases.py:1442 cls.setUpTestData()21 ms9.1%
TestEditStarterPackAccounts.setUpTestDatastarter_packs/tests.py:250 baker.make("mastodon_auth.AccountAccess", user=cls.user)17 ms7.6%
makemodel_bakery/baker.py:17517 ms7.6%
Baker.makemodel_bakery/baker.py:45417 ms7.6%
Baker._makemodel_bakery/baker.py:52915 ms6.7%
Baker.generate_valuemodel_bakery/baker.py:101915 ms6.7%
gen_relatedmodel_bakery/random_gen.py:45415 ms6.7%
makemodel_bakery/baker.py:17515 ms6.7%
Baker.makemodel_bakery/baker.py:45415 ms6.7%
Baker._makemodel_bakery/baker.py:54215 ms6.7%
Baker.instancemodel_bakery/baker.py:65915 ms6.7%
Model.savedjango/db/models/base.py:90415 ms6.7%
Model.save_basedjango/db/models/base.py:99615 ms6.7%
Model._save_tabledjango/db/models/base.py:119915 ms6.7%
Model._do_insertdjango/db/models/base.py:125115 ms6.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:8715 ms6.7%
QuerySet._insertdjango/db/models/query.py:214115 ms6.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193615 ms6.7%
CursorWrapper.executedjango/db/backends/utils.py:7915 ms6.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9215 ms6.7%
CursorWrapper._executedjango/db/backends/utils.py:10515 ms6.7%
Cursor.executepsycopg/cursor.py:11315 ms6.7%
Connection.waitpsycopg/connection.py:49515 ms6.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:20615 ms6.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28615 ms6.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7815 ms6.7%
Baker._makemodel_bakery/baker.py:5422 ms1.0%
Baker.instancemodel_bakery/baker.py:6592 ms1.0%
Model.savedjango/db/models/base.py:9042 ms1.0%
TestEditStarterPackAccounts.setUpTestDatastarter_packs/tests.py:251 cls.starter_pack = baker.make("starter_packs.StarterPack", created_by=cls.user)3 ms1.4%
makemodel_bakery/baker.py:1753 ms1.4%
Baker.makemodel_bakery/baker.py:4543 ms1.4%
Baker._makemodel_bakery/baker.py:5013 ms1.4%
Baker.instancemodel_bakery/baker.py:6592 ms1.0%
Model.savedjango/db/models/base.py:9042 ms1.0%
1 smaller frames hidden
call205 ms90.8%
TestEditStarterPackAccounts.test_not_logged_instarter_packs/tests.py:255 response = self.client.get(reverse("edit_accounts_starter_pack", args=[self.starter_pack.slug]))205 ms90.8%
Client.getdjango/test/client.py:1133205 ms90.8%
RequestFactory.getdjango/test/client.py:475205 ms90.8%
RequestFactory.genericdjango/test/client.py:671205 ms90.8%
Client.requestdjango/test/client.py:1091205 ms90.8%
ClientHandler.__call__django/test/client.py:173205 ms90.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:63205 ms90.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104205 ms90.8%
WhiteNoise.add_fileswhitenoise/base.py:108205 ms90.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:120201 ms88.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:131201 ms88.7%
WhiteNoise.get_static_filewhitenoise/base.py:217201 ms88.7%
StaticFile.__init__whitenoise/responders.py:72193 ms85.5%
StaticFile.get_file_statswhitenoise/responders.py:161193 ms85.5%
__init____init__:-1193 ms85.5%
FileEntry.__init__whitenoise/responders.py:263193 ms85.5%
FileEntry.stat_regular_filewhitenoise/responders.py:276193 ms85.5%
<GC>~193 ms85.5%
StaticFile.__init__whitenoise/responders.py:775 ms2.1%
StaticFile.get_alternativeswhitenoise/responders.py:2074 ms1.6%
Headers.items<stdlib>/wsgiref/headers.py:1314 ms1.6%
<GC>~4 ms1.6%
StaticFile.get_alternativeswhitenoise/responders.py:2011 ms0.5%
StaticFile.__init__whitenoise/responders.py:731 ms0.5%
StaticFile.get_headerswhitenoise/responders.py:1761 ms0.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms2.1%
scantreewhitenoise/base.py:2714 ms1.6%
scantreewhitenoise/base.py:2714 ms1.6%
scantreewhitenoise/base.py:2734 ms1.6%
<GC>~4 ms1.6%
scantreewhitenoise/base.py:2731 ms0.5%
Estimated from 190 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:255
response = self.client.get(reverse("edit_accounts_starter_pack", args=[self.starter_pack.slug]))
TestEditStarterPackAccounts.test_not_logged_in · Libraries
205 ms
starter_packs/tests.py:250
baker.make("mastodon_auth.AccountAccess", user=cls.user)
TestEditStarterPackAccounts.setUpTestData · Database
17 ms
starter_packs/tests.py:251
cls.starter_pack = baker.make("starter_packs.StarterPack", created_by=cls.user)
TestEditStarterPackAccounts.setUpTestData · Database
3 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestEditStarterPackAccounts class 19 ms
_django_setup_unittest class 0.50 ms
_dj_autoclear_mailbox function 0.04 ms
_django_db_marker function 0.04 ms
_template_string_if_invalid_marker function 0.04 ms
_django_isolate_apps function 0.03 ms
_live_server_helper function 0.03 ms
_django_set_urlconf function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

13 queries · 13 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:255
205 ms
setup setUpClass
django/test/testcases.py:1442
21 ms

Reliability

14 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 14 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 226 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 89 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 87 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 79 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 103 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 103 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 69 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 101 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 89 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 51 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 261 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 198 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 193 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 92 ms 0c23747 main Run