|
4 | 4 | from pytest_httpx import HTTPXMock |
5 | 5 |
|
6 | 6 | from infrahub_sdk import InfrahubClient, InfrahubClientSync |
7 | | -from infrahub_sdk.exceptions import FilterNotFoundError, NodeNotFoundError |
| 7 | +from infrahub_sdk.exceptions import NodeNotFoundError |
8 | 8 | from infrahub_sdk.node import InfrahubNode, InfrahubNodeSync |
9 | 9 |
|
10 | 10 | async_client_methods = [method for method in dir(InfrahubClient) if not method.startswith("_")] |
@@ -329,19 +329,6 @@ async def test_method_get_found_many( |
329 | 329 | clients.sync.get(kind="CoreRepository", id="bfae43e8-5ebb-456c-a946-bf64e930710a") |
330 | 330 |
|
331 | 331 |
|
332 | | -@pytest.mark.parametrize("client_type", client_types) |
333 | | -async def test_method_get_invalid_filter(httpx_mock: HTTPXMock, clients, mock_schema_query_01, client_type): # pylint: disable=unused-argument |
334 | | - with pytest.raises(FilterNotFoundError) as excinfo: |
335 | | - if client_type == "standard": |
336 | | - await clients.standard.get(kind="CoreRepository", name__name="infrahub-demo-core") |
337 | | - else: |
338 | | - clients.sync.get(kind="CoreRepository", name__name="infrahub-demo-core") |
339 | | - assert isinstance(excinfo.value.message, str) |
340 | | - assert "'name__name' is not a valid filter for 'CoreRepository'" in excinfo.value.message |
341 | | - assert "default_branch__value" in excinfo.value.message |
342 | | - assert "default_branch__value" in excinfo.value.filters |
343 | | - |
344 | | - |
345 | 332 | @pytest.mark.parametrize("client_type", client_types) |
346 | 333 | async def test_method_filters_many(httpx_mock: HTTPXMock, clients, mock_query_repository_page1_1, client_type): # pylint: disable=unused-argument |
347 | 334 | if client_type == "standard": |
|
0 commit comments