Skip to content

Commit

Permalink
Update backend tests with new enpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteGi committed Jul 17, 2024
1 parent 69c0b86 commit bfcc0dc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend/tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2562,7 +2562,7 @@ async def read_only_repos_in_main(db: InfrahubDatabase, register_core_models_sch
@pytest.fixture
async def mock_core_schema_01(helper, httpx_mock: HTTPXMock) -> HTTPXMock:
response_text = helper.schema_file(file_name="core_schema_01.json")
httpx_mock.add_response(method="GET", url="http://mock/api/schema/?branch=main", json=response_text)
httpx_mock.add_response(method="GET", url="http://mock/api/schema?branch=main", json=response_text)
return httpx_mock


Expand Down
4 changes: 2 additions & 2 deletions backend/tests/unit/git/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ async def mock_schema_query_01(helper, httpx_mock: HTTPXMock) -> HTTPXMock:
encoding="UTF-8"
)

httpx_mock.add_response(method="GET", url="http://mock/api/schema/?branch=main", json=ujson.loads(response_text))
httpx_mock.add_response(method="GET", url="http://mock/api/schema?branch=main", json=ujson.loads(response_text))
return httpx_mock


Expand All @@ -649,7 +649,7 @@ async def mock_schema_query_02(helper, httpx_mock: HTTPXMock) -> HTTPXMock:
encoding="UTF-8"
)

httpx_mock.add_response(method="GET", url="http://mock/api/schema/?branch=main", json=ujson.loads(response_text))
httpx_mock.add_response(method="GET", url="http://mock/api/schema?branch=main", json=ujson.loads(response_text))
return httpx_mock


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async def mock_schema_query_02(helper, httpx_mock: HTTPXMock) -> HTTPXMock:
encoding="UTF-8"
)

httpx_mock.add_response(method="GET", url="http://mock/api/schema/?branch=main", json=ujson.loads(response_text))
httpx_mock.add_response(method="GET", url="http://mock/api/schema?branch=main", json=ujson.loads(response_text))
return httpx_mock


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async def mock_schema_query_02(helper, httpx_mock: HTTPXMock) -> HTTPXMock:
encoding="UTF-8"
)

httpx_mock.add_response(method="GET", url="http://mock/api/schema/?branch=main", json=ujson.loads(response_text))
httpx_mock.add_response(method="GET", url="http://mock/api/schema?branch=main", json=ujson.loads(response_text))
return httpx_mock


Expand Down

0 comments on commit bfcc0dc

Please sign in to comment.