Exemple #1
0
def test_solidity_compiler_not_available():
    with pytest.raises(ValueError):
        get_compiler_for_file('Example.sol')
Exemple #2
0
def test_solidity_compiler():
    compiler = get_compiler_for_file('Example.sol')
    assert compiler == solc
Exemple #3
0
def test_unknown_contract_extensions(filename):
    with pytest.raises(ValueError):
        get_compiler_for_file(filename)
def test_solidity_compiler_not_available():
    with pytest.raises(ValueError):
        get_compiler_for_file('Example.sol')
def test_solidity_compiler():
    compiler = get_compiler_for_file('Example.sol')
    assert compiler == solc
def test_unknown_contract_extensions(filename):
    with pytest.raises(ValueError):
        get_compiler_for_file(filename)