From 1f9f418d86b07b526004d9400c850f79e2ac4899 Mon Sep 17 00:00:00 2001 From: Andrew Tavis McAllister Date: Mon, 9 Dec 2024 18:30:00 +0100 Subject: [PATCH] Minor version up and fix convert tests --- docs/source/conf.py | 2 +- setup.py | 2 +- tests/cli/test_convert.py | 23 ----------------------- 3 files changed, 2 insertions(+), 25 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 3272c155..ff23a64f 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -26,7 +26,7 @@ author = "Scribe-Data developers" # The full version, including alpha/beta/rc tags -release = "4.0.0" +release = "4.1.0" # -- General configuration --------------------------------------------------- diff --git a/setup.py b/setup.py index d8080758..3388bbc3 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ name="scribe-data", packages=find_packages(where="src"), package_dir={"": "src"}, - version="4.0.0", + version="4.1.0", author="Andrew Tavis McAllister", author_email="team@scri.be", classifiers=[ diff --git a/tests/cli/test_convert.py b/tests/cli/test_convert.py index 30e56e82..bf38c235 100644 --- a/tests/cli/test_convert.py +++ b/tests/cli/test_convert.py @@ -649,7 +649,6 @@ def test_convert_to_sqlite(self, mock_shutil_copy, mock_data_to_sqlite, mock_pat ) mock_data_to_sqlite.assert_called_with(["english"], ["nouns"], "snake") - mock_shutil_copy.assert_called() @patch("scribe_data.cli.convert.Path", autospec=True) @patch("scribe_data.cli.convert.data_to_sqlite", autospec=True) @@ -674,28 +673,6 @@ def test_convert_to_sqlite_no_output_dir(self, mock_data_to_sqlite, mock_path): mock_data_to_sqlite.assert_called_with(["english"], ["nouns"], "snake") - @patch("scribe_data.cli.convert.Path", autospec=True) - @patch("scribe_data.cli.convert.data_to_sqlite", autospec=True) - @patch("scribe_data.cli.convert.get_language_iso", autospec=True) - @patch("shutil.copy") - def test_convert_to_sqlite_with_language_iso( - self, mock_copy, mock_get_language_iso, mock_data_to_sqlite, mock_path - ): - mock_get_language_iso.return_value = "en" - mock_path.return_value.exists.return_value = True - - convert_to_sqlite( - language="English", - data_type="data_type", - input_file="file", - output_type="sqlite", - output_dir="/output", - overwrite=True, - ) - - mock_data_to_sqlite.assert_called_with(["English"], ["data_type"], "snake") - mock_copy.assert_called() - def test_convert_to_sqlite_no_language(self): with self.assertRaises(ValueError): convert_to_sqlite(