#32350: Showmigrations applied timestamp can cause runtime error
-------------------------------------+-------------------------------------
Reporter: Daniel Ebrahimian | Owner: Daniel
| Ebrahimian
Type: Bug | Status: assigned
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: management command | Triage Stage: Accepted
showmigrations applied timestamp |
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Daniel Ebrahimian):
When running the unit tests locally, the output contains terminal colour
escape sequences. I have included them when writing the unit tests.
However, when picked up by CI, the output differs.
https://djangoci.com/job/pr-
mariadb/database=mysql,label=mariadb,python=python3.9/9872/testReport/junit/migrations.test_commands/MigrateTests/test_showmigrations_list_squashed/
I have executed tests locally with
`python runtests.py
migrations.test_commands.MigrateTests.test_showmigrations_list_squashed`
```sh
Testing against Django installed in
'/Users/daniel/Documents/GenesisCare/projects/django/django'
Creating test database for alias 'default'...
Creating test database for alias 'other'...
System check identified no issues (0 silenced).
Running pre-migrate handlers for application migrations
Running post-migrate handlers for application migrations
.
----------------------------------------------------------------------
Ran 1 test in 0.017s
OK
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...
```
Please advise whether these codes should be removed and how to then
reproduce CI testing practices locally.
--
Ticket URL: <https://code.djangoproject.com/ticket/32350#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.33221a8851f1d7a519e50bb96d04f503%40djangoproject.com.