#35023 closed Bug (invalid)

using keepdb and creating a fixture from the content of the test_database

Reported by: piscvau Owned by: nobody
Component: Documentation Version: 4.1
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: no

Description

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.

Change History (1)

comment:1 by Mariusz Felisiak, 11 months ago

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.
Back to Top