Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Sep 27, 2023
1 parent 6e3a0b4 commit f52ac16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/cli/vyper_json/test_output_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ def test_solc_style():
input_json = {"settings": {"outputSelection": {"foo.vy": {"": ["abi"], "foo.vy": ["ir"]}}}}
sources = {"foo.vy": ""}
assert get_input_dict_output_formats(input_json, sources) == {"foo.vy": ["abi", "ir_dict"]}


def test_metadata():
input_json = {"settings": {"outputSelection": {"*": ["metadata"]}}}
sources = {"foo.vy": ""}
assert get_input_dict_output_formats(input_json, sources) == {"foo.vy": ["metadata"]}

0 comments on commit f52ac16

Please sign in to comment.