How to use the julia.core.JuliaOptions function in julia

To help you get started, we’ve selected a few julia examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github JuliaPy / pyjulia / test / test_juliaoptions.py View on Github external
def test_valueerror(kwargs):
    with pytest.raises(ValueError) as excinfo:
        JuliaOptions(**kwargs)
    assert "Option" in str(excinfo.value)
    assert "accept" in str(excinfo.value)
github JuliaPy / pyjulia / test / test_juliaoptions.py View on Github external
def test_as_args(kwargs, args):
    assert JuliaOptions(**kwargs).as_args() == args
github JuliaPy / pyjulia / test / test_juliaoptions.py View on Github external
def test_unsupported(kwargs):
    with pytest.raises(TypeError) as excinfo:
        JuliaOptions(**kwargs)
    assert "Unsupported Julia option(s): " in str(excinfo.value)
    for key in kwargs:
        assert key in str(excinfo.value)