From 7b87f501a79808934076804813bb868bc4c65b82 Mon Sep 17 00:00:00 2001 From: theodu Date: Wed, 27 Sep 2023 17:09:41 +0200 Subject: [PATCH] feat:fix client tests --- tests/integration/entrypoints/client/test_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/entrypoints/client/test_client.py b/tests/integration/entrypoints/client/test_client.py index 37bcfb1de..cf686e1e7 100644 --- a/tests/integration/entrypoints/client/test_client.py +++ b/tests/integration/entrypoints/client/test_client.py @@ -123,7 +123,8 @@ def test_given_an_api_key_close_to_expiration_when_I_check_expiry_of_key_is_clos _ = Kili() -def test_given_an_api_key_away_to_expiration_when_I_check_expiry_of_key_is_close_then_it_does_not_output_anything( +@patch.dict(os.environ, {"KILI_API_KEY": "fake_key"}) +def test_given_an_api_key_away_to_expiration_when_I_check_expiry_of_key_is_not_close_then_it_does_not_output_anything( mocker: pytest_mock.MockerFixture, ): # Given