Skip to content

Commit 1f5d8a3

Browse files
committed
removed dead tests
1 parent feeb54c commit 1f5d8a3

1 file changed

Lines changed: 0 additions & 151 deletions

File tree

tests/api_resources/scenarios/test_scorers.py

Lines changed: 0 additions & 151 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
ScorerCreateResponse,
1616
ScorerUpdateResponse,
1717
ScorerRetrieveResponse,
18-
ScorerValidateResponse,
1918
)
2019

2120
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -175,81 +174,6 @@ def test_streaming_response_list(self, client: Runloop) -> None:
175174

176175
assert cast(Any, response.is_closed) is True
177176

178-
@parametrize
179-
def test_method_validate(self, client: Runloop) -> None:
180-
scorer = client.scenarios.scorers.validate(
181-
id="id",
182-
scoring_context={},
183-
)
184-
assert_matches_type(ScorerValidateResponse, scorer, path=["response"])
185-
186-
@parametrize
187-
def test_method_validate_with_all_params(self, client: Runloop) -> None:
188-
scorer = client.scenarios.scorers.validate(
189-
id="id",
190-
scoring_context={},
191-
environment_parameters={
192-
"blueprint_id": "blueprint_id",
193-
"launch_parameters": {
194-
"after_idle": {
195-
"idle_time_seconds": 0,
196-
"on_idle": "shutdown",
197-
},
198-
"architecture": "x86_64",
199-
"available_ports": [0],
200-
"custom_cpu_cores": 0,
201-
"custom_disk_size": 0,
202-
"custom_gb_memory": 0,
203-
"keep_alive_time_seconds": 0,
204-
"launch_commands": ["string"],
205-
"network_policy_id": "network_policy_id",
206-
"required_services": ["string"],
207-
"resource_size_request": "X_SMALL",
208-
"user_parameters": {
209-
"uid": 0,
210-
"username": "username",
211-
},
212-
},
213-
"snapshot_id": "snapshot_id",
214-
"working_directory": "working_directory",
215-
},
216-
)
217-
assert_matches_type(ScorerValidateResponse, scorer, path=["response"])
218-
219-
@parametrize
220-
def test_raw_response_validate(self, client: Runloop) -> None:
221-
response = client.scenarios.scorers.with_raw_response.validate(
222-
id="id",
223-
scoring_context={},
224-
)
225-
226-
assert response.is_closed is True
227-
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
228-
scorer = response.parse()
229-
assert_matches_type(ScorerValidateResponse, scorer, path=["response"])
230-
231-
@parametrize
232-
def test_streaming_response_validate(self, client: Runloop) -> None:
233-
with client.scenarios.scorers.with_streaming_response.validate(
234-
id="id",
235-
scoring_context={},
236-
) as response:
237-
assert not response.is_closed
238-
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
239-
240-
scorer = response.parse()
241-
assert_matches_type(ScorerValidateResponse, scorer, path=["response"])
242-
243-
assert cast(Any, response.is_closed) is True
244-
245-
@parametrize
246-
def test_path_params_validate(self, client: Runloop) -> None:
247-
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
248-
client.scenarios.scorers.with_raw_response.validate(
249-
id="",
250-
scoring_context={},
251-
)
252-
253177

254178
class TestAsyncScorers:
255179
parametrize = pytest.mark.parametrize(
@@ -406,78 +330,3 @@ async def test_streaming_response_list(self, async_client: AsyncRunloop) -> None
406330
assert_matches_type(AsyncScenarioScorersCursorIDPage[ScorerListResponse], scorer, path=["response"])
407331

408332
assert cast(Any, response.is_closed) is True
409-
410-
@parametrize
411-
async def test_method_validate(self, async_client: AsyncRunloop) -> None:
412-
scorer = await async_client.scenarios.scorers.validate(
413-
id="id",
414-
scoring_context={},
415-
)
416-
assert_matches_type(ScorerValidateResponse, scorer, path=["response"])
417-
418-
@parametrize
419-
async def test_method_validate_with_all_params(self, async_client: AsyncRunloop) -> None:
420-
scorer = await async_client.scenarios.scorers.validate(
421-
id="id",
422-
scoring_context={},
423-
environment_parameters={
424-
"blueprint_id": "blueprint_id",
425-
"launch_parameters": {
426-
"after_idle": {
427-
"idle_time_seconds": 0,
428-
"on_idle": "shutdown",
429-
},
430-
"architecture": "x86_64",
431-
"available_ports": [0],
432-
"custom_cpu_cores": 0,
433-
"custom_disk_size": 0,
434-
"custom_gb_memory": 0,
435-
"keep_alive_time_seconds": 0,
436-
"launch_commands": ["string"],
437-
"network_policy_id": "network_policy_id",
438-
"required_services": ["string"],
439-
"resource_size_request": "X_SMALL",
440-
"user_parameters": {
441-
"uid": 0,
442-
"username": "username",
443-
},
444-
},
445-
"snapshot_id": "snapshot_id",
446-
"working_directory": "working_directory",
447-
},
448-
)
449-
assert_matches_type(ScorerValidateResponse, scorer, path=["response"])
450-
451-
@parametrize
452-
async def test_raw_response_validate(self, async_client: AsyncRunloop) -> None:
453-
response = await async_client.scenarios.scorers.with_raw_response.validate(
454-
id="id",
455-
scoring_context={},
456-
)
457-
458-
assert response.is_closed is True
459-
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
460-
scorer = await response.parse()
461-
assert_matches_type(ScorerValidateResponse, scorer, path=["response"])
462-
463-
@parametrize
464-
async def test_streaming_response_validate(self, async_client: AsyncRunloop) -> None:
465-
async with async_client.scenarios.scorers.with_streaming_response.validate(
466-
id="id",
467-
scoring_context={},
468-
) as response:
469-
assert not response.is_closed
470-
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
471-
472-
scorer = await response.parse()
473-
assert_matches_type(ScorerValidateResponse, scorer, path=["response"])
474-
475-
assert cast(Any, response.is_closed) is True
476-
477-
@parametrize
478-
async def test_path_params_validate(self, async_client: AsyncRunloop) -> None:
479-
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
480-
await async_client.scenarios.scorers.with_raw_response.validate(
481-
id="",
482-
scoring_context={},
483-
)

0 commit comments

Comments
 (0)