Esempio n. 1
0
def test_service(service_fixture, app):
    from nb2workflow import workflows

    result = workflows.evaluate("host", service_fixture, "workflow-notebook")

    print(result)
    assert result['output']
    assert len(result['output']) == 4
    assert result['exceptions'] == []

    assert 'spectrum' in result['output']
Esempio n. 2
0
def test_workflow_localfile():

    from nb2workflow import workflows

    result = workflows.evaluate("localfile",
                                os.environ.get("TEST_NOTEBOOK_REPO"),
                                "workflow-notebook")

    print(result)
    assert result['output']
    assert len(result['output']) == 4
    assert result['exceptions'] == []

    assert 'spectrum' in result['output']
Esempio n. 3
0
def test_workflow_exception_service(service_fixture, app):
    from nb2workflow import workflows

    result = workflows.evaluate("host",
                                service_fixture,
                                "workflow-notebook",
                                scwid="66500220010.001")

    print(result)
    assert len(result['output']) == 0
    assert len(result['exceptions']) == 1

    ex = result['exceptions'][0]

    print(ex)
Esempio n. 4
0
def test_workflow_exception_localfile():

    from nb2workflow import workflows

    result = workflows.evaluate("localfile",
                                os.environ.get("TEST_NOTEBOOK_REPO"),
                                "workflow-notebook",
                                scwid="66500220010.001")

    print(result)
    assert len(result['output']) == 0
    assert len(result['exceptions']) == 1

    ex = result['exceptions'][0]

    print(ex)