#6283 (Doctest failures after Django upgrade)
by Luc Saffre · in Developers · assigned to Luc Saffre
Kurzbeschreibung
gitlab.com/lino-framework/book/-/jobs/11196778193 shows failures caused by differences in the help text for the -v / --verbosity option:
- -v {0,1,2,3}, --verbosity {0,1,2,3}
+ -v, --verbosity {0,1,2,3}
This is obviously caused by a change in upstream (probably Django or Python).
Kinder
- #6293 (Use another Python version than Ubuntu's default) (by Luc Saffre in Developers assigned to Luc Saffre)
Kommentare
- 1 Jahr, 1 Monat ago von Luc Saffre about #6283 (Doctest failures after Django upgrade) : There is one more doctest failure in docs/plugins/help.rst in book on GitLab.
- 1 Jahr, 1 Monat ago von Luc Saffre about #6283 (Doctest failures after Django upgrade) : Todo for Joosep tonight: learn about "python unit tests"
- 1 Jahr, 1 Monat ago von Luc Saffre about #6283 (Doctest failures after Django upgrade) : It turns out that #6293 (Use another Python version than Ubuntu's default) isn't very trivial. So let's try to adapt these doctests using ELLIPSIS ("...") so that they pass in *both* Python versions.
- 1 Jahr, 1 Monat ago von Luc Saffre Antwort auf Joosep Madar about #6283 (Doctest failures after Django upgrade) : One of them says "ModuleNotFoundError: No module named 'lino_cms'" --> "go cms" and "pip install -e ."
- 1 Jahr, 1 Monat ago von Joosep Madar about #6283 (Doctest failures after Django upgrade) (1 Antwort) : Why are they failing when they didn't fail before? tests/test_site.py::NeededByTest::test_01 FAILED [ 13%] docs/apps/noi/as_pdf.rst::as_pdf.rst FAILED [ 14%]
=============... - 1 Jahr, 1 Monat ago von Luc Saffre about #6283 (Doctest failures after Django upgrade) : The problem comes because the help format generated by argparse was optimized somewhere after python 3.12.3, The default Python in my Ubuntu is 3.12.3, but the Docker image "python 3.12" installs 3.12.5. So I have the old format and GitLab has the new format. @joosep now adapted a series of doctests...
- 1 Jahr, 1 Monat ago von Joosep Madar about #6283 (Doctest failures after Django upgrade) : gitlab.com/joosepmadar/book small fix is now in my fork but pending because i don't have any active runners that can run this job. (project CI settings)
- 1 Jahr, 1 Monat ago von Luc Saffre about #6283 (Doctest failures after Django upgrade) : We discovered that the difference was introduced in Python 3.12.4 or 3.12.5 (GL uses 3.12.5, I use 3.12.3, Jossu uses 3.13.3), and only I have the old formatting.
- 1 Jahr, 1 Monat ago von Luc Saffre about #6283 (Doctest failures after Django upgrade) : The test failure in line 491 of memo.rst is about a difference in the "python manage.py removeurls" command. Something to read: dev.lino-framework.org/dev/django.html (elso dig into the two links to the Django docs)
- 1 Jahr, 1 Monat ago von Luc Saffre about #6283 (Doctest failures after Django upgrade) : Link for joosep: dev.lino-framework.org/team/pull_request.html#use-a-fork
- 1 Jahr, 1 Monat ago von Luc Saffre about #6283 (Doctest failures after Django upgrade) : This might be a ticket for @joosep. First step would be to create a fork of the book repository and to change the remote in his local copy.
- 1 Jahr, 1 Monat ago von Luc Saffre about #6283 (Doctest failures after Django upgrade) : Created new Ticket #6283 (Doctest failures after Django upgrade).