コード例 #1
0
ファイル: test_oommfmif.py プロジェクト: awantae/oommf-python
def test_retrieve_oommf_executable(tmpdir):
    oommf_path = o.get_oommf_path()
    executable = o.retrieve_oommf_executable(oommf_path)
    assert executable in ['oommf', 'oommf.tcl']

    # a directory with no files, should raise an exception
    with pytest.raises(RuntimeError):
        executable = o.retrieve_oommf_executable(str(tmpdir))
コード例 #2
0
ファイル: test_oommfmif.py プロジェクト: fangohr/oommf-python
def test_retrieve_oommf_executable(tmpdir):
    oommf_path = o.get_oommf_path()
    executable = o.retrieve_oommf_executable(oommf_path)
    assert executable in ['oommf', 'oommf.tcl']

    # a directory with no files, should raise an exception
    with pytest.raises(RuntimeError):
        executable = o.retrieve_oommf_executable(str(tmpdir))
コード例 #3
0
ファイル: test_oommfmif.py プロジェクト: awantae/oommf-python
def test_get_oommf_path():
    assert isinstance(o.get_oommf_path(), str)
コード例 #4
0
ファイル: test_oommfmif.py プロジェクト: fangohr/oommf-python
def test_get_oommf_path():
    assert isinstance(o.get_oommf_path(), str)