コード例 #1
0
ファイル: test_plugin.py プロジェクト: pelme/pytest-splinter
def test_executable():
    """Test argument construction for webdrivers."""
    arg1 = get_args(driver='phantomjs', executable='/tmp')
    arg2 = get_args(driver='chrome', executable='/tmp')
    assert arg1['executable_path'] == '/tmp'
    assert arg2['executable_path'] == '/tmp'
コード例 #2
0
def test_executable():
    """ improve testing coverage """
    arg1 = get_args('phantomjs', '', '', '', '', '', '/tmp', '')
    arg2 = get_args('chrome', '', '', '', '', '', '/tmp', '')
    assert arg1['executable_path'] == '/tmp'
    assert arg2['executable_path'] == '/tmp'
コード例 #3
0
def test_executable():
    """ improve testing coverage """
    arg1 = get_args('phantomjs', '', '', '', '', '', '/tmp', '')
    arg2 = get_args('chrome', '', '', '', '', '', '/tmp', '')
    assert arg1['executable_path'] == '/tmp'
    assert arg2['executable_path'] == '/tmp'
コード例 #4
0
def test_executable():
    """Test argument construction for webdrivers."""
    arg1 = get_args(driver='chrome', executable='/tmp')
    assert arg1['executable_path'] == '/tmp'
コード例 #5
0
def test_executable():
    """Test argument construction for webdrivers."""
    arg1 = get_args(driver="chrome", executable="/tmp")
    assert arg1["executable_path"] == "/tmp"