From 0085df79119c7f24c65121ca16e92d8e8fa66117 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 06:56:03 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- sde_collections/tests/api_tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sde_collections/tests/api_tests.py b/sde_collections/tests/api_tests.py index 768d9fb8..73f2a77a 100644 --- a/sde_collections/tests/api_tests.py +++ b/sde_collections/tests/api_tests.py @@ -1,9 +1,12 @@ # docker-compose -f local.yml run --rm django pytest sde_collections/tests/api_tests.py import unittest from unittest.mock import Mock, patch + from requests import HTTPError + from ..sinequa_api import Api + class TestApi(unittest.TestCase): def setUp(self): # Set up an instance of the Api class with parameters for testing @@ -129,5 +132,6 @@ def test_process_full_text_response(self): ] self.assertEqual(processed_response, expected) + if __name__ == "__main__": unittest.main()