forked from feldera/feldera
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_public_api.py
More file actions
32 lines (24 loc) · 842 Bytes
/
Copy pathtest_public_api.py
File metadata and controls
32 lines (24 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""The minimal public API is importable straight from the `felderize` package.
Keeps the documented programmatic entry point (`from felderize import ...`)
working, independent of internal module layout.
"""
from __future__ import annotations
import felderize
def test_all_lists_the_public_api():
assert set(felderize.__all__) == {
"translate_spark_to_feldera",
"Config",
"TranslationResult",
"Status",
}
def test_public_names_are_importable():
from felderize import (
Config,
Status,
TranslationResult,
translate_spark_to_feldera,
)
assert callable(translate_spark_to_feldera)
assert Config.from_env() is not None
assert TranslationResult().status is Status.SUCCESS
assert {s.value for s in Status} == {"success", "unsupported", "error"}