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

TestRemoteFollowStarterPack::test_get_not_allowed

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
100 ms
median 83 ms
max 197 ms
Phases
Setup 3 ms Call 96 ms Teardown 1 ms
Categories
Database 5 ms Other (Libraries, pytest, Unsampled) 95 ms

5 database queries per run

Needs 173 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
setup17 ms20.8%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()14 ms17.0%
TestCase._enter_atomicsdjango/test/testcases.py:139914 ms17.0%
Atomic.__enter__django/db/transaction.py:21014 ms17.0%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45414 ms17.0%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30414 ms17.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2614 ms17.0%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27914 ms17.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2614 ms17.0%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25614 ms17.0%
DatabaseWrapper.get_new_connectionfedidevs/db/postgresql/base.py:39 return super().get_new_connection(conn_params)14 ms17.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2614 ms17.0%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34514 ms17.0%
Connection.connectpsycopg/connection.py:10914 ms17.0%
wait_connpsycopg/waiting.py:14114 ms17.0%
BaseConnection._connect_genpsycopg/_connection_base.py:4399 ms11.3%
EpollSelector.select<stdlib>/selectors.py:4525 ms5.7%
TestCase.setUpClassdjango/test/testcases.py:1442 cls.setUpTestData()3 ms3.8%
TestRemoteFollowStarterPack.setUpTestDatastarter_packs/tests.py:1235 cls.starter_pack = baker.make("starter_packs.StarterPack", published_at=timezone.now())3 ms3.8%
makemodel_bakery/baker.py:1753 ms3.8%
Baker.makemodel_bakery/baker.py:4543 ms3.8%
Baker._makemodel_bakery/baker.py:5293 ms3.8%
Baker.generate_valuemodel_bakery/baker.py:10193 ms3.8%
gen_relatedmodel_bakery/random_gen.py:4543 ms3.8%
makemodel_bakery/baker.py:1753 ms3.8%
Baker.makemodel_bakery/baker.py:4543 ms3.8%
Baker._makemodel_bakery/baker.py:5423 ms3.8%
Baker.instancemodel_bakery/baker.py:6593 ms3.8%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:623 ms3.8%
Model.savedjango/db/models/base.py:9043 ms3.8%
Model.save_basedjango/db/models/base.py:9963 ms3.8%
Model._save_tabledjango/db/models/base.py:11993 ms3.8%
Model._do_insertdjango/db/models/base.py:12513 ms3.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms3.8%
QuerySet._insertdjango/db/models/query.py:21413 ms3.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19363 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms3.8%
Cursor.executepsycopg/cursor.py:1133 ms3.8%
Connection.waitpsycopg/connection.py:4953 ms3.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms3.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms3.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms3.8%
call66 ms78.9%
TestRemoteFollowStarterPack.test_get_not_allowedstarter_packs/tests.py:1295 response = self.client.get(self.url)66 ms78.9%
Client.getdjango/test/client.py:113366 ms78.9%
RequestFactory.getdjango/test/client.py:47566 ms78.9%
RequestFactory.genericdjango/test/client.py:67166 ms78.9%
Client.requestdjango/test/client.py:109166 ms78.9%
ClientHandler.__call__django/test/client.py:17366 ms78.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6366 ms78.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10466 ms78.9%
WhiteNoise.add_fileswhitenoise/base.py:10866 ms78.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12066 ms78.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13166 ms78.9%
WhiteNoise.get_static_filewhitenoise/base.py:21754 ms64.9%
StaticFile.__init__whitenoise/responders.py:7238 ms45.6%
StaticFile.get_file_statswhitenoise/responders.py:16138 ms45.6%
__init____init__:-136 ms43.8%
FileEntry.__init__whitenoise/responders.py:26336 ms43.8%
FileEntry.stat_regular_filewhitenoise/responders.py:27436 ms43.8%
StaticFile.__init__whitenoise/responders.py:7710 ms12.3%
StaticFile.get_alternativeswhitenoise/responders.py:2017 ms8.8%
Headers.__setitem__<stdlib>/wsgiref/headers.py:626 ms7.0%
Headers.__delitem__<stdlib>/wsgiref/headers.py:726 ms7.0%
StaticFile.get_alternativeswhitenoise/responders.py:2033 ms3.5%
StaticFile.__init__whitenoise/responders.py:763 ms3.5%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1881 ms1.8%
StaticFile.__init__whitenoise/responders.py:731 ms1.8%
StaticFile.get_headerswhitenoise/responders.py:1771 ms1.8%
Headers.__contains__<stdlib>/wsgiref/headers.py:871 ms1.8%
Headers.get<stdlib>/wsgiref/headers.py:1061 ms1.8%
StaticFile.__init__whitenoise/responders.py:741 ms1.8%
parsedate<stdlib>/email/_parseaddr.py:1851 ms1.8%
parsedate_tz<stdlib>/email/_parseaddr.py:501 ms1.8%
_parsedate_tz<stdlib>/email/_parseaddr.py:1401 ms1.8%
WhiteNoise.get_static_filewhitenoise/base.py:21210 ms12.3%
WhiteNoise.add_cache_headerswhitenoise/base.py:2337 ms8.8%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1736 ms7.0%
WhiteNoiseMiddleware.get_name_without_hashwhitenoise/middleware.py:1916 ms7.0%
StaticFile.__init__whitenoise/responders.py:771 ms1.8%
StaticFile.get_alternativeswhitenoise/responders.py:2011 ms1.8%
Headers.__setitem__<stdlib>/wsgiref/headers.py:621 ms1.8%
Headers.__delitem__<stdlib>/wsgiref/headers.py:721 ms1.8%
WhiteNoise.get_static_filewhitenoise/base.py:2211 ms1.8%
Estimated from 56 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:1295
response = self.client.get(self.url)
TestRemoteFollowStarterPack.test_get_not_allowed · Libraries
66 ms
fedidevs/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection · Database
14 ms
starter_packs/tests.py:1235
cls.starter_pack = baker.make("starter_packs.StarterPack", published_at=timezone.now())
TestRemoteFollowStarterPack.setUpTestData · Database
3 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestRemoteFollowStarterPack class 16 ms
_django_setup_unittest class 0.28 ms
_dj_autoclear_mailbox function 0.05 ms
_django_db_marker function 0.05 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

7 queries · 6 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:1295
66 ms
setup setUpClass
django/test/testcases.py:1426
17 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 83 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 74 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 83 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 40 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 96 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 55 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 80 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 73 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 41 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 178 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 197 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 195 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 81 ms 0c23747 main Run