File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ from conductor .client .orkes_clients import OrkesClients , ConductorClients
2+ from conductor .client import ConductorClients as ConductorClientsFromPkg
3+ from conductor .client .configuration .configuration import Configuration
4+
5+
6+ def test_alias_is_same_class ():
7+ assert ConductorClients is OrkesClients
8+
9+
10+ def test_package_export_is_same_class ():
11+ assert ConductorClientsFromPkg is OrkesClients
12+
13+
14+ def test_conductor_clients_instantiates ():
15+ config = Configuration (server_api_url = 'http://localhost:8080/api' )
16+ clients = ConductorClients (configuration = config )
17+ assert isinstance (clients , OrkesClients )
18+
19+
20+ def test_conductor_clients_default_config ():
21+ clients = ConductorClients ()
22+ assert clients .configuration is not None
23+
24+
25+ def test_conductor_clients_get_methods ():
26+ config = Configuration (server_api_url = 'http://localhost:8080/api' )
27+ clients = ConductorClients (configuration = config )
28+ assert clients .get_workflow_executor () is not None
29+ assert clients .get_workflow_client () is not None
30+ assert clients .get_task_client () is not None
31+ assert clients .get_metadata_client () is not None
32+ assert clients .get_scheduler_client () is not None
33+ assert clients .get_secret_client () is not None
You can’t perform that action at this time.
0 commit comments