Example #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'
Example #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'
Example #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"
Example #4
0
def test_to_html_on_arrays():
    s = to_html(Data(np.ones((2, 2))))
    assert '1' in s
    assert 'br>' in s
Example #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'
Example #6
0
def test_to_html_on_arrays():
    s = to_html(Data(np.ones((2, 2))))
    assert '1' in s
    assert 'br>' in s
Example #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'
Example #8
0
def test_to_html_on_arrays():
    s = to_html(Data(np.ones((2, 2))))
    assert "1" in s
    assert "br>" in s
Example #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"