From 013a8178642b16a3f7e97ce638fc5bf0a29039d4 Mon Sep 17 00:00:00 2001 From: Jake VanderPlas Date: Sat, 28 Mar 2020 13:50:32 -0700 Subject: [PATCH] MAINT: clean up some unnecessary code --- altair_saver/tests/test_core.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/altair_saver/tests/test_core.py b/altair_saver/tests/test_core.py index 0946f5c..95b16e7 100644 --- a/altair_saver/tests/test_core.py +++ b/altair_saver/tests/test_core.py @@ -136,7 +136,6 @@ def test_save_spec(spec: JSONDict, fmt: str) -> None: @pytest.mark.parametrize("fmt", FORMATS) def test_save_return_value(spec: JSONDict, fmt: str) -> None: - fp: Union[io.BytesIO, io.StringIO] result = save(spec, fmt=fmt) assert result is not None check_output(result, fmt) @@ -272,9 +271,7 @@ def test_save_w_vega_cli_options( vega_cli_options: Optional[List[str]], ) -> None: """Tests that `vega_cli_options` works with both NodeSaver and other Savers""" - monkeypatch.setattr(NodeSaver, "enabled", lambda: True) monkeypatch.setattr(SeleniumSaver, "enabled", lambda: False) - fp: Union[io.BytesIO, io.StringIO] result = save(chart, fmt=fmt, vega_cli_options=vega_cli_options) assert result is not None check_output(result, fmt)