Skip to content

Commit dcc878e

Browse files
committed
test: check imports
1 parent 9551776 commit dcc878e

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

ai21/clients/sagemaker/resources/sagemaker_completion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from __future__ import annotations
1+
# from __future__ import annotations
22

33
from typing import List, Dict
44

tests/unittests/test_imports.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from ai21 import __all__
2+
3+
EXPECTED_ALL = [
4+
"AI21EnvConfig",
5+
"AI21Client",
6+
"AI21APIError",
7+
"APITimeoutError",
8+
"AI21Error",
9+
"MissingApiKeyError",
10+
"ModelPackageDoesntExistError",
11+
"TooManyRequestsError",
12+
"AI21BedrockClient",
13+
"AI21SageMakerClient",
14+
"BedrockModelID",
15+
"SageMaker",
16+
]
17+
18+
19+
def test_all_imports() -> None:
20+
assert sorted(EXPECTED_ALL) == sorted(__all__)

0 commit comments

Comments
 (0)