TestAsyncSkills Class — anthropic-sdk-python Architecture
Architecture documentation for the TestAsyncSkills class in test_skills.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 9ec70ef7_8023_0e38_8ba5_8a6a4d956222["TestAsyncSkills"] 5c7c6a85_9a24_ff7a_8dc6_8f174fab0aec["SkillCreateResponse"] 9ec70ef7_8023_0e38_8ba5_8a6a4d956222 -->|extends| 5c7c6a85_9a24_ff7a_8dc6_8f174fab0aec c62c6062_1f06_a270_5cc3_cf541699ad23["SkillRetrieveResponse"] 9ec70ef7_8023_0e38_8ba5_8a6a4d956222 -->|extends| c62c6062_1f06_a270_5cc3_cf541699ad23 4f1e0efd_b524_5d0d_aa53_b25120599ae4["SkillDeleteResponse"] 9ec70ef7_8023_0e38_8ba5_8a6a4d956222 -->|extends| 4f1e0efd_b524_5d0d_aa53_b25120599ae4 a2c42b3a_a4d5_b289_bfdf_932cd0518801["test_skills.py"] 9ec70ef7_8023_0e38_8ba5_8a6a4d956222 -->|defined in| a2c42b3a_a4d5_b289_bfdf_932cd0518801 11d928ca_581f_4901_d52d_67620c211f0d["test_method_create()"] 9ec70ef7_8023_0e38_8ba5_8a6a4d956222 -->|method| 11d928ca_581f_4901_d52d_67620c211f0d a3d830ee_cfbb_b620_6e27_468c0ffc026a["test_method_create_with_all_params()"] 9ec70ef7_8023_0e38_8ba5_8a6a4d956222 -->|method| a3d830ee_cfbb_b620_6e27_468c0ffc026a 844955b3_7200_eb4e_2bdd_e7b5fceb4345["test_raw_response_create()"] 9ec70ef7_8023_0e38_8ba5_8a6a4d956222 -->|method| 844955b3_7200_eb4e_2bdd_e7b5fceb4345 811f1cdd_cfec_16ae_f916_9cc9a862d6ff["test_streaming_response_create()"] 9ec70ef7_8023_0e38_8ba5_8a6a4d956222 -->|method| 811f1cdd_cfec_16ae_f916_9cc9a862d6ff 1e749fe7_8c5e_a59b_1b97_7151afebd8ae["test_method_retrieve()"] 9ec70ef7_8023_0e38_8ba5_8a6a4d956222 -->|method| 1e749fe7_8c5e_a59b_1b97_7151afebd8ae d70a1fad_12d9_d6d4_d5a3_5f6bce514a7e["test_method_retrieve_with_all_params()"] 9ec70ef7_8023_0e38_8ba5_8a6a4d956222 -->|method| d70a1fad_12d9_d6d4_d5a3_5f6bce514a7e d36c6773_b589_1fd0_ef71_5152cd327b7f["test_raw_response_retrieve()"] 9ec70ef7_8023_0e38_8ba5_8a6a4d956222 -->|method| d36c6773_b589_1fd0_ef71_5152cd327b7f 07899510_526d_8267_45d4_da108997f919["test_streaming_response_retrieve()"] 9ec70ef7_8023_0e38_8ba5_8a6a4d956222 -->|method| 07899510_526d_8267_45d4_da108997f919 c156ecc7_4326_50b7_a278_9020bf9fbe13["test_path_params_retrieve()"] 9ec70ef7_8023_0e38_8ba5_8a6a4d956222 -->|method| c156ecc7_4326_50b7_a278_9020bf9fbe13 51b6d2c9_cca7_c36b_202e_c2d24eb63bd6["test_method_list()"] 9ec70ef7_8023_0e38_8ba5_8a6a4d956222 -->|method| 51b6d2c9_cca7_c36b_202e_c2d24eb63bd6
Relationship Graph
Source Code
tests/api_resources/beta/test_skills.py lines 192–360
class TestAsyncSkills:
parametrize = pytest.mark.parametrize(
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
)
@pytest.mark.skip(reason="prism binary unsupported")
@parametrize
async def test_method_create(self, async_client: AsyncAnthropic) -> None:
skill = await async_client.beta.skills.create()
assert_matches_type(SkillCreateResponse, skill, path=["response"])
@pytest.mark.skip(reason="prism binary unsupported")
@parametrize
async def test_method_create_with_all_params(self, async_client: AsyncAnthropic) -> None:
skill = await async_client.beta.skills.create(
display_title="display_title",
files=[b"raw file contents"],
betas=["string"],
)
assert_matches_type(SkillCreateResponse, skill, path=["response"])
@pytest.mark.skip(reason="prism binary unsupported")
@parametrize
async def test_raw_response_create(self, async_client: AsyncAnthropic) -> None:
response = await async_client.beta.skills.with_raw_response.create()
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
skill = response.parse()
assert_matches_type(SkillCreateResponse, skill, path=["response"])
@pytest.mark.skip(reason="prism binary unsupported")
@parametrize
async def test_streaming_response_create(self, async_client: AsyncAnthropic) -> None:
async with async_client.beta.skills.with_streaming_response.create() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
skill = await response.parse()
assert_matches_type(SkillCreateResponse, skill, path=["response"])
assert cast(Any, response.is_closed) is True
@parametrize
async def test_method_retrieve(self, async_client: AsyncAnthropic) -> None:
skill = await async_client.beta.skills.retrieve(
skill_id="skill_id",
)
assert_matches_type(SkillRetrieveResponse, skill, path=["response"])
@parametrize
async def test_method_retrieve_with_all_params(self, async_client: AsyncAnthropic) -> None:
skill = await async_client.beta.skills.retrieve(
skill_id="skill_id",
betas=["string"],
)
assert_matches_type(SkillRetrieveResponse, skill, path=["response"])
@parametrize
async def test_raw_response_retrieve(self, async_client: AsyncAnthropic) -> None:
response = await async_client.beta.skills.with_raw_response.retrieve(
skill_id="skill_id",
)
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
skill = response.parse()
assert_matches_type(SkillRetrieveResponse, skill, path=["response"])
@parametrize
async def test_streaming_response_retrieve(self, async_client: AsyncAnthropic) -> None:
async with async_client.beta.skills.with_streaming_response.retrieve(
skill_id="skill_id",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
skill = await response.parse()
assert_matches_type(SkillRetrieveResponse, skill, path=["response"])
assert cast(Any, response.is_closed) is True
Domain
Defined In
Source
Frequently Asked Questions
What is the TestAsyncSkills class?
TestAsyncSkills is a class in the anthropic-sdk-python codebase, defined in tests/api_resources/beta/test_skills.py.
Where is TestAsyncSkills defined?
TestAsyncSkills is defined in tests/api_resources/beta/test_skills.py at line 192.
What does TestAsyncSkills extend?
TestAsyncSkills extends SkillCreateResponse, SkillRetrieveResponse, SkillDeleteResponse.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free