From 3de1a8115aae796a3beb6c2af873b2a12a9ac0f9 Mon Sep 17 00:00:00 2001 From: Vikash Singh <3116482+vi3k6i5@users.noreply.github.com> Date: Thu, 20 May 2021 13:01:36 +0530 Subject: [PATCH] fix: correct test case for sql_flush for multiple delete table commands (#629) * feat: updated nox file for docs and docfx and added unit tests for client * fix: lint_setup_py was failing in Kokoro is not fixed * feat: updated nox file for docs and docfx and added unit tests for client * feat: added docfx build in nox file * feat: updated nox file for docs and docfx and added unit tests for client * feat: added docfx build in nox file * feat: adding unit tests for django spanner * feat: updated nox file for docs and docfx and added unit tests for client * feat: added docfx build in nox file * feat: updated nox file for docs and docfx and added unit tests for client * feat: added docfx build in nox file * feat: updated nox file for docs and docfx and added unit tests for client * feat: adding unit tests for django spanner * bug: fixed schema tests settings to create instance and delete it after test completion * bug: test fixes for schema file * feat: added unit test coverage for functions, introspection and schema * refactor: lint the code * refactor: removed unrelated code from PR * ci: added build for docfx and refactores settings for unit tests * build: added python 3.9 in setup file * refactor: changed coverage check to 65 from 68 to be conservative in the estimates * fix: corrected test case for sql_flush for multiple delete table commands --- tests/unit/django_spanner/test_operations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/django_spanner/test_operations.py b/tests/unit/django_spanner/test_operations.py index e2a77148b2..9bed6a447e 100644 --- a/tests/unit/django_spanner/test_operations.py +++ b/tests/unit/django_spanner/test_operations.py @@ -33,9 +33,9 @@ def test_sql_flush(self): self.assertEqual( self.db_operations.sql_flush( - style=no_style(), tables=["Table1, Table2"] + style=no_style(), tables=["Table1", "Table2"] ), - ["DELETE FROM `Table1, Table2`"], + ["DELETE FROM Table1", "DELETE FROM Table2"], ) def test_sql_flush_empty_table_list(self):