Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
MAINT: clean up some unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevdp committed Mar 28, 2020
1 parent fd19a88 commit 013a817
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions altair_saver/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 013a817

Please sign in to comment.