diff --git a/fish/fish_cli/core/client.py b/fish/fish_cli/core/client.py index e407c65..436857d 100644 --- a/fish/fish_cli/core/client.py +++ b/fish/fish_cli/core/client.py @@ -24,8 +24,7 @@ def _get_headers(self, extra: dict[str, str] | None = None) -> dict[str, str]: """Get request headers with authentication.""" if not self.api_token: raise FishAuthError( - "API token not configured. " - "Set ACEDATACLOUD_API_TOKEN or use --token option." + "API token not configured. Set ACEDATACLOUD_API_TOKEN or use --token option." ) headers = { "accept": "application/json", diff --git a/fish/tests/test_commands.py b/fish/tests/test_commands.py index 5817365..3e114a7 100644 --- a/fish/tests/test_commands.py +++ b/fish/tests/test_commands.py @@ -62,9 +62,7 @@ def test_tts_json(self, runner, mock_tts_response): respx.post("https://api.acedata.cloud/fish/tts").mock( return_value=Response(200, json=mock_tts_response) ) - result = runner.invoke( - cli, ["--token", "test-token", "tts", "Hello, world!", "--json"] - ) + result = runner.invoke(cli, ["--token", "test-token", "tts", "Hello, world!", "--json"]) assert result.exit_code == 0 data = json.loads(result.output) assert "audio_url" in data @@ -226,9 +224,7 @@ def test_tts_async(self, runner, mock_tts_async_response): route = respx.post("https://api.acedata.cloud/fish/tts").mock( return_value=Response(200, json=mock_tts_async_response) ) - result = runner.invoke( - cli, ["--token", "test-token", "tts", "Hello", "--async", "--json"] - ) + result = runner.invoke(cli, ["--token", "test-token", "tts", "Hello", "--async", "--json"]) assert result.exit_code == 0 sent = json.loads(route.calls[0].request.content) assert sent["async"] is True @@ -238,9 +234,7 @@ def test_tts_async_rich_output(self, runner, mock_tts_async_response): respx.post("https://api.acedata.cloud/fish/tts").mock( return_value=Response(200, json=mock_tts_async_response) ) - result = runner.invoke( - cli, ["--token", "test-token", "tts", "Hello", "--async"] - ) + result = runner.invoke(cli, ["--token", "test-token", "tts", "Hello", "--async"]) assert result.exit_code == 0 assert "2725a2d3" in result.output