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

TestCreateStarterPack::test_create_starter_pack_rejects_unknown_language

First seen 3 weeks ago in 0c23747
CI github-actions:test 11 runs
Average
143 ms
median 121 ms
max 302 ms
Phases
Setup 5 ms Call 137 ms Teardown 0.62 ms
Categories
Database 38 ms Factories 0.29 ms Other (Libraries, Templates, pytest, Unsampled, ...) 105 ms

26 database queries per run

Needs 198 KB of memory (max 892 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
call90 ms98.7%
TestCreateStarterPack.test_create_starter_pack_rejects_unknown_languagestarter_packs/tests.py:157 response = self.client.post(82 ms90.3%
Client.postdjango/test/client.py:116282 ms90.3%
RequestFactory.postdjango/test/client.py:49982 ms90.3%
RequestFactory.genericdjango/test/client.py:67182 ms90.3%
Client.requestdjango/test/client.py:109182 ms90.3%
ClientHandler.__call__django/test/client.py:17376 ms83.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6376 ms83.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10476 ms83.6%
WhiteNoise.add_fileswhitenoise/base.py:10876 ms83.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11576 ms83.6%
scantreewhitenoise/base.py:27175 ms81.9%
scantreewhitenoise/base.py:27175 ms81.9%
scantreewhitenoise/base.py:27175 ms81.9%
scantreewhitenoise/base.py:27175 ms81.9%
scantreewhitenoise/base.py:27175 ms81.9%
scantreewhitenoise/base.py:27375 ms81.9%
scantreewhitenoise/base.py:2692 ms1.7%
ClientHandler.__call__django/test/client.py:1865 ms5.0%
BaseHandler.get_responsedjango/core/handlers/base.py:1425 ms5.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:565 ms5.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3805 ms5.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:565 ms5.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms3.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms3.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms3.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms3.3%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1233 ms3.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms3.3%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1453 ms3.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms3.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms3.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms3.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms3.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms3.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms3.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms3.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms3.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms3.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms3.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms3.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms3.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms3.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms3.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms3.3%
BaseHandler._get_responsedjango/core/handlers/base.py:1993 ms3.3%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:623 ms3.3%
create_starter_packstarter_packs/views.py:573 return render(3 ms3.3%
renderdjango/shortcuts.py:273 ms3.3%
render_to_stringdjango/template/loader.py:623 ms3.3%
Template.renderdjango/template/backends/django.py:1073 ms3.3%
Template.renderdjango/template/base.py:1753 ms3.3%
instrumented_test_renderdjango/test/utils.py:1133 ms3.3%
NodeList.renderdjango/template/base.py:11083 ms3.3%
Node.render_annotateddjango/template/base.py:10693 ms3.3%
ExtendsNode.renderdjango/template/loader_tags.py:1603 ms3.3%
instrumented_test_renderdjango/test/utils.py:1133 ms3.3%
NodeList.renderdjango/template/base.py:11083 ms3.3%
Node.render_annotateddjango/template/base.py:10693 ms3.3%
BlockNode.renderdjango/template/loader_tags.py:663 ms3.3%
NodeList.renderdjango/template/base.py:11083 ms3.3%
Node.render_annotateddjango/template/base.py:10693 ms3.3%
ForNode.renderdjango/template/defaulttags.py:2493 ms3.3%
Node.render_annotateddjango/template/base.py:10693 ms3.3%
render_value_in_contextdjango/template/base.py:11512 ms1.7%
VariableNode.renderdjango/template/base.py:11672 ms1.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3822 ms1.7%
CSPMiddleware.process_responsecsp/middleware.py:832 ms1.7%
build_policycsp/utils.py:942 ms1.7%
ClientHandler.__call__django/test/client.py:2072 ms1.7%
HttpResponseBase.closedjango/http/response.py:3422 ms1.7%
TestCreateStarterPack.test_create_starter_pack_rejects_unknown_languagestarter_packs/tests.py:166 self.assertEqual(self.user.starterpack_set.count(), 0)8 ms8.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:876 ms6.7%
QuerySet.countdjango/db/models/query.py:6776 ms6.7%
Query.get_countdjango/db/models/sql/query.py:6573 ms3.3%
Query.get_aggregationdjango/db/models/sql/query.py:6393 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16123 ms3.3%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7682 ms1.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:892 ms1.7%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:782 ms1.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3192 ms1.7%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5792 ms1.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7962 ms1.7%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5792 ms1.7%
QuerySet.querydjango/db/models/query.py:3552 ms1.7%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17042 ms1.7%
Query.add_qdjango/db/models/sql/query.py:16812 ms1.7%
Query._add_qdjango/db/models/sql/query.py:17132 ms1.7%
Query.build_filterdjango/db/models/sql/query.py:15772 ms1.7%
Query.setup_joinsdjango/db/models/sql/query.py:20022 ms1.7%
Query.joindjango/db/models/sql/query.py:11512 ms1.7%
Query.get_countdjango/db/models/sql/query.py:6562 ms1.7%
ReverseManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:6972 ms1.7%
teardown0.27 ms0.3%
Estimated from 60 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:157
response = self.client.post(
TestCreateStarterPack.test_create_starter_pack_rejects_unknown_language · Libraries
79 ms
starter_packs/tests.py:166
self.assertEqual(self.user.starterpack_set.count(), 0)
TestCreateStarterPack.test_create_starter_pack_rejects_unknown_language · Database
8 ms
starter_packs/views.py:573
return render(
create_starter_pack · Templates
3 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.05 ms
_template_string_if_invalid_marker function 0.05 ms
_django_set_urlconf function 0.05 ms
_django_db_marker function 0.04 ms
_live_server_helper function 0.04 ms
_django_isolate_apps function 0.04 ms
_django_clear_site_cache function 0.03 ms
monkeypatch function 0.02 ms

Database

25 queries · 8 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:157
90 ms
teardown pytest internals 0.27 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 91 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 54 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 157 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 130 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 75 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 111 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 121 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 91 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 217 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 302 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 220 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 103 ms 0c23747 main Run