Skip to content

Commit 7e1bfe5

Browse files
author
Your Name
committed
Issue #1088
1 parent 0dc65dd commit 7e1bfe5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

sde_collections/tests/api_tests.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
# docker-compose -f local.yml run --rm django pytest sde_collections/tests/api_tests.py
22
import unittest
33
from unittest.mock import Mock, patch
4-
54
from requests import HTTPError
6-
75
from ..sinequa_api import Api
86

9-
107
class TestApi(unittest.TestCase):
118
def setUp(self):
129
# Set up an instance of the Api class with parameters for testing
@@ -69,8 +66,7 @@ def test_query(self, mock_post):
6966
"advanced": {"collection": "/SDE/sample_folder/"},
7067
},
7168
}
72-
73-
mock_post.assert_called_once_with(expected_url, headers=None, json=expected_payload, data=None, verify=False)
69+
mock_post.assert_called_once_with(expected_url, headers={}, json=expected_payload, verify=False)
7470

7571
@patch("requests.post")
7672
def test_sql_query(self, mock_post):
@@ -133,6 +129,5 @@ def test_process_full_text_response(self):
133129
]
134130
self.assertEqual(processed_response, expected)
135131

136-
137132
if __name__ == "__main__":
138133
unittest.main()

0 commit comments

Comments
 (0)