2424
2525class TestCLITotalQuery (unittest .TestCase ):
2626 @patch ("scribe_data.cli.total.query.get_qid_by_input" )
27- @patch ("scribe_data.cli.total.sparql.query" )
27+ @patch ("scribe_data.cli.total.query. sparql.query" )
2828 def test_cli_total_query_lexemes_valid (
2929 self , mock_query : MagicMock , mock_get_qid : MagicMock
3030 ) -> None :
@@ -45,7 +45,7 @@ def test_cli_total_query_lexemes_valid(
4545 )
4646
4747 @patch ("scribe_data.cli.total.query.get_qid_by_input" )
48- @patch ("scribe_data.cli.total.sparql.query" )
48+ @patch ("scribe_data.cli.total.query. sparql.query" )
4949 def test_cli_total_query_lexemes_no_results (
5050 self , mock_query : MagicMock , mock_get_qid : MagicMock
5151 ) -> None :
@@ -62,7 +62,7 @@ def test_cli_total_query_lexemes_no_results(
6262 mock_print .assert_called_once_with ("Total number of lexemes: Not found" )
6363
6464 @patch ("scribe_data.cli.total.query.get_qid_by_input" )
65- @patch ("scribe_data.cli.total.sparql.query" )
65+ @patch ("scribe_data.cli.total.query. sparql.query" )
6666 def test_cli_total_query_lexemes_invalid_language (
6767 self , mock_query : MagicMock , mock_get_qid : MagicMock
6868 ) -> None :
@@ -75,7 +75,7 @@ def test_cli_total_query_lexemes_invalid_language(
7575 mock_print .assert_called_once_with ("Total number of lexemes: Not found" )
7676
7777 @patch ("scribe_data.cli.total.query.get_qid_by_input" )
78- @patch ("scribe_data.cli.total.sparql.query" )
78+ @patch ("scribe_data.cli.total.query. sparql.query" )
7979 def test_cli_total_query_lexemes_empty_and_none_inputs (
8080 self , mock_query : MagicMock , mock_get_qid : MagicMock
8181 ) -> None :
@@ -94,7 +94,7 @@ def test_cli_total_query_lexemes_empty_and_none_inputs(
9494 mock_print .assert_has_calls (expected_calls , any_order = True )
9595
9696 @patch ("scribe_data.cli.total.query.get_qid_by_input" )
97- @patch ("scribe_data.cli.total.sparql.query" )
97+ @patch ("scribe_data.cli.total.query. sparql.query" )
9898 def test_cli_total_query_lexemes_nonexistent_language (
9999 self , mock_query : MagicMock , mock_get_qid : MagicMock
100100 ) -> None :
@@ -107,7 +107,7 @@ def test_cli_total_query_lexemes_nonexistent_language(
107107 mock_print .assert_called_once_with ("Total number of lexemes: Not found" )
108108
109109 @patch ("scribe_data.cli.total.query.get_qid_by_input" )
110- @patch ("scribe_data.cli.total.sparql.query" )
110+ @patch ("scribe_data.cli.total.query. sparql.query" )
111111 def test_cli_total_query_lexemes_various_data_types (
112112 self , mock_query : MagicMock , mock_get_qid : MagicMock
113113 ) -> None :
@@ -139,7 +139,7 @@ def test_cli_total_query_lexemes_various_data_types(
139139 mock_print .assert_has_calls (expected_calls )
140140
141141 @patch ("scribe_data.cli.total.query.get_qid_by_input" )
142- @patch ("scribe_data.cli.total.sparql.query" )
142+ @patch ("scribe_data.cli.total.query. sparql.query" )
143143 @patch ("scribe_data.cli.total.WIKIDATA_QUERIES_ALL_DATA_DIR" )
144144 def test_cli_total_query_lexemes_sub_languages (
145145 self , mock_dir : MagicMock , mock_query : MagicMock , mock_get_qid : MagicMock
0 commit comments