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

TestRobotsTxt::test_disallows_query_strings_except_googlebot

First seen 13 hours ago in 0c23747
CI github-actions:test 4 runs
Average
138 ms
median 148 ms
max 205 ms
Phases
Setup 1 ms Call 136 ms Teardown 0.46 ms
Categories
Other (Libraries, pytest, Unsampled) 138 ms

Needs 362 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 8 hours ago · open run
Show pytest frames
setup1 ms2.3%
call51 ms97.1%
TestRobotsTxt.test_disallows_query_strings_except_googlebotfedidevs/tests.py:13 response = self.client.get("/robots.txt")48 ms93.0%
Client.getdjango/test/client.py:113348 ms93.0%
RequestFactory.getdjango/test/client.py:47548 ms93.0%
RequestFactory.genericdjango/test/client.py:67148 ms93.0%
Client.requestdjango/test/client.py:109148 ms93.0%
ClientHandler.__call__django/test/client.py:17348 ms93.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6348 ms93.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10448 ms93.0%
WhiteNoise.add_fileswhitenoise/base.py:10848 ms93.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12036 ms68.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13136 ms68.8%
WhiteNoise.get_static_filewhitenoise/base.py:21727 ms52.6%
StaticFile.__init__whitenoise/responders.py:7315 ms28.3%
StaticFile.get_headerswhitenoise/responders.py:17611 ms20.2%
formatdate<stdlib>/email/utils.py:2662 ms4.0%
format_datetime<stdlib>/email/utils.py:2752 ms4.0%
StaticFile.get_headerswhitenoise/responders.py:1812 ms4.0%
Headers.__setitem__<stdlib>/wsgiref/headers.py:642 ms4.0%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms4.0%
StaticFile.get_headerswhitenoise/responders.py:1782 ms4.0%
parsedate<stdlib>/email/_parseaddr.py:1852 ms4.0%
parsedate_tz<stdlib>/email/_parseaddr.py:502 ms4.0%
_parsedate_tz<stdlib>/email/_parseaddr.py:692 ms4.0%
StaticFile.__init__whitenoise/responders.py:776 ms12.1%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms4.0%
__init____init__:-12 ms4.0%
Headers.__init__<stdlib>/wsgiref/headers.py:432 ms4.0%
StaticFile.get_alternativeswhitenoise/responders.py:2012 ms4.0%
StaticFile.__init__whitenoise/responders.py:722 ms4.0%
StaticFile.get_file_statswhitenoise/responders.py:1572 ms4.0%
__init____init__:-12 ms4.0%
FileEntry.__init__whitenoise/responders.py:2632 ms4.0%
FileEntry.stat_regular_filewhitenoise/responders.py:2742 ms4.0%
StaticFile.__init__whitenoise/responders.py:762 ms4.0%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1902 ms4.0%
WhiteNoise.get_static_filewhitenoise/base.py:2126 ms12.1%
WhiteNoise.add_cache_headerswhitenoise/base.py:2336 ms12.1%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1764 ms8.1%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1974 ms8.1%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms4.0%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2352 ms4.0%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2162 ms4.0%
WhiteNoise.get_static_filewhitenoise/base.py:2112 ms4.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11513 ms24.3%
scantreewhitenoise/base.py:27113 ms24.3%
scantreewhitenoise/base.py:2718 ms16.2%
scantreewhitenoise/base.py:2734 ms8.1%
scantreewhitenoise/base.py:2692 ms4.0%
scantreewhitenoise/base.py:2702 ms4.0%
scantreewhitenoise/base.py:2692 ms4.0%
scantreewhitenoise/base.py:2732 ms4.0%
teardown0.33 ms0.6%
Estimated from 26 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

fedidevs/tests.py:13
response = self.client.get("/robots.txt")
TestRobotsTxt.test_disallows_query_strings_except_googlebot · Libraries
48 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestRobotsTxt class 0.24 ms
_django_setup_unittest class 0.06 ms
_template_string_if_invalid_marker function 0.06 ms
_django_db_marker function 0.03 ms
_django_isolate_apps function 0.03 ms
_django_set_urlconf function 0.03 ms
_live_server_helper function 0.03 ms
_dj_autoclear_mailbox function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Biggest pieces of work

call test body
fedidevs/tests.py:13
48 ms
call pytest internals 2 ms
setup pytest internals 1 ms
teardown pytest internals 0.33 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 5 results, oldest first in the strip
When Environment Outcome Duration Commit
8 hours ago CI github-actions:test passed 52 ms d923a46 main Profile
8 hours ago CI github-actions:test passed 199 ms 82997f8 main Profile
8 hours ago CI github-actions:test passed 205 ms 623aa3e main Profile
13 hours ago CI github-actions:test passed 96 ms ab6465a main Profile
13 hours ago CI github-actions:test passed 62 ms 0c23747 main Run