コード例 #1
0
def test_solidity_compiler_not_available():
    with pytest.raises(ValueError):
        get_compiler_for_file('Example.sol')
コード例 #2
0
def test_solidity_compiler():
    compiler = get_compiler_for_file('Example.sol')
    assert compiler == solc
コード例 #3
0
def test_unknown_contract_extensions(filename):
    with pytest.raises(ValueError):
        get_compiler_for_file(filename)
コード例 #4
0
def test_solidity_compiler_not_available():
    with pytest.raises(ValueError):
        get_compiler_for_file('Example.sol')
コード例 #5
0
def test_solidity_compiler():
    compiler = get_compiler_for_file('Example.sol')
    assert compiler == solc
コード例 #6
0
def test_unknown_contract_extensions(filename):
    with pytest.raises(ValueError):
        get_compiler_for_file(filename)