Skip to content

Commit 99a776f

Browse files
committed
nits
1 parent f99ea69 commit 99a776f

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

dataset.jsonl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"text": "The quick brown fox jumps over the lazy dog"}

tests/test_client_init.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@
55
import cohere
66
from cohere import ToolMessage, UserMessage, AssistantMessage
77

8-
try:
9-
import boto3
10-
HAS_BOTO3 = True
11-
except ImportError:
12-
HAS_BOTO3 = False
8+
import importlib.util
9+
HAS_BOTO3 = importlib.util.find_spec("boto3") is not None
1310

1411
class TestClientInit(unittest.TestCase):
1512
@unittest.skipUnless(HAS_BOTO3, "boto3 not installed")

0 commit comments

Comments
 (0)