-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_predicate_aliases.py
More file actions
37 lines (28 loc) · 1006 Bytes
/
test_predicate_aliases.py
File metadata and controls
37 lines (28 loc) · 1006 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
33
34
35
36
37
"""Compatibility tests for Predicate* class counterparts."""
from predicate import (
AsyncPredicateBrowser,
PredicateAgent,
PredicateAgentAsync,
PredicateBrowser,
PredicateDebugger,
PredicateVisualAgent,
PredicateVisualAgentAsync,
AsyncSentienceBrowser,
SentienceAgent,
SentienceAgentAsync,
SentienceBrowser,
SentienceDebugger,
SentienceVisualAgent,
SentienceVisualAgentAsync,
)
def test_predicate_browser_aliases() -> None:
assert PredicateBrowser is SentienceBrowser
assert AsyncPredicateBrowser is AsyncSentienceBrowser
def test_predicate_agent_aliases() -> None:
assert PredicateAgent is SentienceAgent
assert PredicateAgentAsync is SentienceAgentAsync
def test_predicate_visual_agent_aliases() -> None:
assert PredicateVisualAgent is SentienceVisualAgent
assert PredicateVisualAgentAsync is SentienceVisualAgentAsync
def test_predicate_debugger_alias() -> None:
assert PredicateDebugger is SentienceDebugger