mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #23303 -- Added BEGIN and COMMIT statements to the output of sqlmigrate.
This commit is contained in:
@@ -134,6 +134,11 @@ class CommandTests(SimpleTestCase):
|
||||
with self.assertRaises(CommandError):
|
||||
management.call_command('hal', stdout=out)
|
||||
|
||||
def test_output_transaction(self):
|
||||
out = StringIO()
|
||||
management.call_command('transaction', stdout=out, no_color=True)
|
||||
self.assertEqual(out.getvalue(), 'BEGIN;\nHello!\n\nCOMMIT;\n')
|
||||
|
||||
|
||||
class UtilsTests(SimpleTestCase):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user