Skip to content

Parametrize platform identifier validation tests in test_router_post#730

Open
KushanSingh-Kalvium wants to merge 1 commit intoaiondemand:developfrom
KushanSingh-Kalvium:improve_test_router_post
Open

Parametrize platform identifier validation tests in test_router_post#730
KushanSingh-Kalvium wants to merge 1 commit intoaiondemand:developfrom
KushanSingh-Kalvium:improve_test_router_post

Conversation

@KushanSingh-Kalvium
Copy link

Refactors validation tests for platform and platform_resource_identifier
in tests/routers/generic/test_router_post.py.

Previously, multiple tests covered invalid combinations of these fields
with duplicated request logic. These cases are now consolidated into a
single parameterized pytest test using pytest.mark.parametrize.

This reduces duplication while preserving the same test coverage.

Closes #547

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve test/routers/generic/test_router_post

1 participant