From 29401f537375cf1db1032a7fa933058990ad3af3 Mon Sep 17 00:00:00 2001
From: Valentin Rigal <rigal@teklia.com>
Date: Wed, 22 May 2024 09:33:14 +0200
Subject: [PATCH] Suggestion

---
 arkindex/documents/management/commands/load_export.py | 2 +-
 arkindex/documents/tests/commands/test_load_export.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arkindex/documents/management/commands/load_export.py b/arkindex/documents/management/commands/load_export.py
index d5f016307b..aff006607e 100644
--- a/arkindex/documents/management/commands/load_export.py
+++ b/arkindex/documents/management/commands/load_export.py
@@ -522,7 +522,7 @@ class Command(BaseCommand):
         db_results = self.db.execute(SQL_TABLES_QUERY).fetchall()
         # Database's tables must be a superset of TABLE_NAMES, so we keep compatibility when removing things
         if (missing := TABLE_NAMES - set([table["name"] for table in db_results])):
-            raise CommandError(f"The SQLite database {db_path} miss some expected tables: {sorted(missing)}")
+            raise CommandError(f"The SQLite database {db_path} is missing some expected tables: {sorted(missing)}")
 
         # Check export version
         db_results = self.db.execute(SQL_VERSION_QUERY).fetchall()
diff --git a/arkindex/documents/tests/commands/test_load_export.py b/arkindex/documents/tests/commands/test_load_export.py
index 35cc0bedcc..7344e5f720 100644
--- a/arkindex/documents/tests/commands/test_load_export.py
+++ b/arkindex/documents/tests/commands/test_load_export.py
@@ -101,7 +101,7 @@ class TestLoadExport(FixtureTestCase):
         with self.assertRaises(CommandError) as context:
             call_command("load_export", temp_file, "--email", self.user.email)
         self.assertEqual(str(context.exception), (
-            f"The SQLite database {temp_file} miss some expected tables: "
+            f"The SQLite database {temp_file} is missing some expected tables: "
             "['classification', 'dataset', 'dataset_element', 'element', "
             "'element_path', 'entity', 'entity_type', 'export_version', "
             "'image', 'image_server', 'metadata', 'transcription', "
-- 
GitLab