Skip to content

Commit

Permalink
remove tests for get -all
Browse files Browse the repository at this point in the history
  • Loading branch information
axif0 committed Dec 11, 2024
1 parent 38d09dc commit 6191ab9
Showing 1 changed file with 30 additions and 29 deletions.
59 changes: 30 additions & 29 deletions tests/cli/test_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,35 +47,36 @@ def test_invalid_arguments(self):

# MARK: All Data

@patch("scribe_data.cli.get.query_data")
def test_get_all_data_types_for_language(self, mock_query_data):
get_data(all=True, language="English")
mock_query_data.assert_called_once_with(
languages=["English"],
data_type=None,
output_dir="scribe_data_json_export",
overwrite=False,
)

@patch("scribe_data.cli.get.query_data")
def test_get_all_languages_for_data_type(self, mock_query_data):
get_data(all=True, data_type="nouns")
mock_query_data.assert_called_once_with(
languages=None,
data_type=["nouns"],
output_dir="scribe_data_json_export",
overwrite=False,
)

@patch("scribe_data.cli.get.query_data")
def test_get_all_languages_and_data_types(self, mock_query_data):
get_data(all=True, output_dir="./test_output")
mock_query_data.assert_called_once_with(
languages=None,
data_type=None,
output_dir="./test_output",
overwrite=False,
)
# Using sparql based data extract tests
# @patch("scribe_data.cli.get.query_data")
# def test_get_all_data_types_for_language(self, mock_query_data):
# get_data(all=True, language="English")
# mock_query_data.assert_called_once_with(
# languages=["English"],
# data_type=None,
# output_dir="scribe_data_json_export",
# overwrite=False,
# )

# @patch("scribe_data.cli.get.query_data")
# def test_get_all_languages_for_data_type(self, mock_query_data):
# get_data(all=True, data_type="nouns")
# mock_query_data.assert_called_once_with(
# languages=None,
# data_type=["nouns"],
# output_dir="scribe_data_json_export",
# overwrite=False,
# )

# @patch("scribe_data.cli.get.query_data")
# def test_get_all_languages_and_data_types(self, mock_query_data):
# get_data(all=True, output_dir="./test_output")
# mock_query_data.assert_called_once_with(
# languages=None,
# data_type=None,
# output_dir="./test_output",
# overwrite=False,
# )

# MARK: Language and Data Type

Expand Down

0 comments on commit 6191ab9

Please sign in to comment.