Skip to content

Commit 803d733

Browse files
authored
Merge pull request #598 from kytos-ng/test/fixed_test_static_web_ui
tests: fixed TestAPIServer::test_static_web_ui
2 parents c88e543 + c4345de commit 803d733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/test_core/test_api_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ async def test_static_web_ui(self, monkeypatch, file_exist):
8585
"""Test static_web_ui method to success case."""
8686
monkeypatch.setattr("os.path.exists", lambda x: file_exist)
8787
monkeypatch.setattr("kytos.core.api_server.FileResponse",
88-
lambda x: JSONResponse({}))
88+
lambda x, headers: JSONResponse({}))
8989

9090
endpoint = f"/ui/kytos/napp/{self.api_server.napps_dir}"
9191
client = AsyncClient(app=self.app, base_url="http://127.0.0.1")

0 commit comments

Comments
 (0)