[Django] #26689: Tutorial05 "polls/tests.py" tabbing issue

2 views
Skip to first unread message

Django

unread,
May 31, 2016, 4:20:59 AM5/31/16
to django-...@googlegroups.com
#26689: Tutorial05 "polls/tests.py" tabbing issue
-------------------------------+--------------------
Reporter: dougvought | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.9
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------+--------------------
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:'''

1. Open a browser window (FireFox 46.0.1 or Chrome 50.0.2661.102 m) with a
width greater than 822px
2. Go to https://docs.djangoproject.com/en/1.9/intro/tutorial05/#create-a
-test-to-expose-the-bug
3. Resize the window so that its width is smaller than 822px
4. The self.assertEqual part "jumps" to the same tab level as the
QuestionMethodTests class.

--
Ticket URL: <https://code.djangoproject.com/ticket/26689>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 31, 2016, 4:22:07 AM5/31/16
to django-...@googlegroups.com
#26689: Tutorial05 "polls/tests.py" tabbing issue
---------------------------+----------------------------

Reporter: dougvought | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.9
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
UI/UX: 1 |
---------------------------+----------------------------
Changes (by dougvought):

* Attachment "documentation_tutorial05_self.assertEqual_tabbing.png"
added.

The "jumping" effect from browser window width < 822px

Django

unread,
May 31, 2016, 7:39:40 AM5/31/16
to django-...@googlegroups.com
#26689: Tutorial05 "polls/tests.py" tabbing issue
-------------------------------+--------------------------------------
Reporter: dougvought | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 1.9
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 1
-------------------------------+--------------------------------------
Changes (by timgraham):

* status: new => closed
* needs_docs: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_better_patch: => 0


Comment:

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.

--
Ticket URL: <https://code.djangoproject.com/ticket/26689#comment:1>

Django

unread,
May 31, 2016, 9:08:17 AM5/31/16
to django-...@googlegroups.com
#26689: Tutorial05 "polls/tests.py" tabbing issue
-------------------------------+--------------------------------------
Reporter: dougvought | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 1.9
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 1
-------------------------------+--------------------------------------

Comment (by timgraham):

(moved to https://github.com/django/djangoproject.com/issues/662)

--
Ticket URL: <https://code.djangoproject.com/ticket/26689#comment:2>

Reply all
Reply to author
Forward
0 new messages