@@ -50,3 +50,65 @@ async def test_stages_nested_files():
5050 assert hasattr (file_resource , "update" )
5151 assert hasattr (file_resource , "delete" )
5252 assert hasattr (file_resource , "presigned_url" )
53+
54+
55+ @pytest .mark .asyncio
56+ async def test_batch_stages_has_files_and_runs ():
57+ """Test batch stages expose .files and .runs with .list() methods."""
58+ client = Client (base_url = "https://api.example.com" , api_key = "test-key" )
59+
60+ batch = client .v1 .stages ("id1" , "id2" )
61+ assert hasattr (batch , "files" )
62+ assert hasattr (batch , "runs" )
63+
64+ batch_files = batch .files
65+ assert hasattr (batch_files , "list" )
66+ assert batch_files .stage_ids == ["id1" , "id2" ]
67+
68+ batch_runs = batch .runs
69+ assert hasattr (batch_runs , "list" )
70+ assert batch_runs .stage_ids == ["id1" , "id2" ]
71+
72+
73+ @pytest .mark .asyncio
74+ async def test_batch_search_stores_has_documents ():
75+ """Test batch search stores expose .documents with .list() method."""
76+ client = Client (base_url = "https://api.example.com" , api_key = "test-key" )
77+
78+ batch = client .v1 .search_stores ("ss1" , "ss2" )
79+ assert hasattr (batch , "documents" )
80+
81+ batch_docs = batch .documents
82+ assert hasattr (batch_docs , "list" )
83+ assert batch_docs .search_store_ids == ["ss1" , "ss2" ]
84+
85+
86+ @pytest .mark .asyncio
87+ async def test_batch_repositories_has_datasets ():
88+ """Test batch repositories expose .datasets with .list() method."""
89+ client = Client (base_url = "https://api.example.com" , api_key = "test-key" )
90+
91+ batch = client .v1 .repositories ("r1" , "r2" )
92+ assert hasattr (batch , "datasets" )
93+
94+ batch_datasets = batch .datasets
95+ assert hasattr (batch_datasets , "list" )
96+ assert batch_datasets .repository_ids == ["r1" , "r2" ]
97+
98+
99+ @pytest .mark .asyncio
100+ async def test_batch_connectors_has_files_and_runs ():
101+ """Test batch connectors expose .files and .runs with .list() methods."""
102+ client = Client (base_url = "https://api.example.com" , api_key = "test-key" )
103+
104+ batch = client .v1 .connectors ("c1" , "c2" )
105+ assert hasattr (batch , "files" )
106+ assert hasattr (batch , "runs" )
107+
108+ batch_files = batch .files
109+ assert hasattr (batch_files , "list" )
110+ assert batch_files .connector_ids == ["c1" , "c2" ]
111+
112+ batch_runs = batch .runs
113+ assert hasattr (batch_runs , "list" )
114+ assert batch_runs .connector_ids == ["c1" , "c2" ]
0 commit comments