[Django] #35023: using keepdb and creating a fixture from the content of the test_database

9 views
Skip to first unread message

Django

unread,
Dec 7, 2023, 6:08:10 AM12/7/23
to django-...@googlegroups.com
#35023: using keepdb and creating a fixture from the content of the test_database
-----------------------------------------+------------------------
Reporter: piscvau | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 4.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
Hello
I am using mysql and I want to create a yaml fixture from the data created
in the test, after running the tests.
when I run the test script with ---keepdb I get the following message

'Preserving testdatabase for alias default.'

I after launch the command dumpdata and I get the following error message
:

CommandError: Unable to serialize database: The connection
<test_database_name> doesn't exist.

I have googled all over the documentation and stackoverflow and django
project forum and found no solution. It seems there is something
particular with mysql which does not support transaction but some
documentation about how to handle this for mysql would be welcomed.

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

Django

unread,
Dec 7, 2023, 7:00:58 AM12/7/23
to django-...@googlegroups.com
#35023: using keepdb and creating a fixture from the content of the test_database
-------------------------------+--------------------------------------
Reporter: piscvau | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 4.1
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: 0
-------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => invalid


Comment:

Please don't use Trac as a support channel. Closing per
TicketClosingReasons/UseSupportChannels.

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

Reply all
Reply to author
Forward
0 new messages