Ejemplo n.º 1
0
def test_to_html():
    s = to_html(t)
    assert s
    assert 'Alice' in s
    assert '<table' in s

    assert to_html(1) == '1'

    assert to_html(t.count()) == '2'
Ejemplo n.º 2
0
def test_to_html():
    s = to_html(t)
    assert s
    assert 'Alice' in s
    assert '<table' in s

    assert to_html(1) == '1'

    assert to_html(t.count()) == '2'
Ejemplo n.º 3
0
def test_to_html():
    s = to_html(t)
    assert s
    assert "Alice" in s
    assert "<table" in s

    assert to_html(1) == "1"

    assert to_html(t.count()) == "2"
Ejemplo n.º 4
0
def test_to_html_on_arrays():
    s = to_html(Data(np.ones((2, 2))))
    assert '1' in s
    assert 'br>' in s
Ejemplo n.º 5
0
def test_repr_html_on_no_resources_symbol():
    t = symbol('t', '5 * {id: int, name: string, balance: int}')
    assert to_html(t) == 't'
Ejemplo n.º 6
0
def test_to_html_on_arrays():
    s = to_html(Data(np.ones((2, 2))))
    assert '1' in s
    assert 'br>' in s
Ejemplo n.º 7
0
def test_repr_html_on_no_resources_symbol():
    t = symbol('t', '5 * {id: int, name: string, balance: int}')
    assert to_html(t) == 't'
Ejemplo n.º 8
0
def test_to_html_on_arrays():
    s = to_html(Data(np.ones((2, 2))))
    assert "1" in s
    assert "br>" in s
Ejemplo n.º 9
0
def test_repr_html_on_no_resources_symbol():
    t = symbol("t", "5 * {id: int, name: string, balance: int}")
    assert to_html(t) == "t"