#26689 closed Bug (invalid)
Tutorial05 "polls/tests.py" tabbing issue
Reported by: | dougvought | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.9 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | yes |
Description
I noticed a visual issue that caused me to incorrectly copy the code for this section:
https://docs.djangoproject.com/en/1.9/intro/tutorial05/#create-a-test-to-expose-the-bug
In the "Create a test to expose the bug" section, this code block in "polls/test.py"
#polls/test.py #... self.assertEqual(future_question.was_published_recently(), False)
gets pushed over and "loses" its tab, making it appear outside of the function scope.
To reproduce:
- Open a browser window (FireFox 46.0.1 or Chrome 50.0.2661.102 m) with a width greater than 822px
- Go to https://docs.djangoproject.com/en/1.9/intro/tutorial05/#create-a-test-to-expose-the-bug
- Resize the window so that its width is smaller than 822px
- The self.assertEqual part "jumps" to the same tab level as the QuestionMethodTests class.
Attachments (1)
Change History (3)
by , 9 years ago
Attachment: | documentation_tutorial05_self.assertEqual_tabbing.png added |
---|
comment:1 by , 9 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
We use GitHub to track issues for the website: https://github.com/django/djangoproject.com/
I don't know if there's any change we can make to prevent the current behavior though. I'd rather keep the current wrapping behavior rather than introduce a horizontal scrollbar, for example.
The "jumping" effect from browser window width < 822px