Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 23, 2024
1 parent cedac65 commit db4e66e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dbbackup/tests/test_connectors/test_sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,13 @@ def test_create_dump_with_newline(self):
TextModel.objects.create(
field=f'INSERT ({"foo" * 5000}\nbar\n WHERE \nbaz IS\n "great" );\n'
)

connector = SqliteConnector()
dump = connector.create_dump()
self.assertTrue(dump.read())

def test_restore_dump(self):
TextModel.objects.create(
field='T\nf\nw\nnl'
)
TextModel.objects.create(field="T\nf\nw\nnl")
connector = SqliteConnector()
dump = connector.create_dump()
connector.restore_dump(dump)
Expand Down

0 comments on commit db4e66e

Please sign in to comment.