spyder_notebook/widgets/tests/test_client.py
def client(qtbot):
    """Construct a NotebookClient for use in tests."""
    plugin = MockPlugin()
    client = NotebookClient(plugin, '/path/notebooks/ham.ipynb')
    server_info = {'notebook_dir': '/path/notebooks',
                   'url': 'fake_url',
                   'token': 'fake_token'}
    client.register(server_info)
    return client
Construct a NotebookClient for use in tests.
Construct a NotebookClient for use in tests.
Construct a NotebookClient for use in tests .
def client(qtbot):
    plugin = MockPlugin()
    client = NotebookClient(plugin, '/path/notebooks/ham.ipynb')
    server_info = {'notebook_dir': '/path/notebooks',
                   'url': 'fake_url',
                   'token': 'fake_token'}
    client.register(server_info)
    return client
def client ( qtbot ) : plugin = MockPlugin ( ) client = NotebookClient ( plugin , '/path/notebooks/ham.ipynb' ) server_info = { 'notebook_dir' : '/path/notebooks' , 'url' : 'fake_url' , 'token' : 'fake_token' } client . register ( server_info ) return client
Construct a NotebookClient for use in tests.
Construct a NotebookClient for use in tests .
"""Construct a NotebookClient for use in tests."""
qtbot