コード例 #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'
コード例 #2
0
ファイル: test_interactive.py プロジェクト: postelrich/blaze
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'
コード例 #3
0
ファイル: test_interactive.py プロジェクト: gyenney/Tools
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"
コード例 #4
0
def test_to_html_on_arrays():
    s = to_html(Data(np.ones((2, 2))))
    assert '1' in s
    assert 'br>' in s
コード例 #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'
コード例 #6
0
ファイル: test_interactive.py プロジェクト: postelrich/blaze
def test_to_html_on_arrays():
    s = to_html(Data(np.ones((2, 2))))
    assert '1' in s
    assert 'br>' in s
コード例 #7
0
ファイル: test_interactive.py プロジェクト: postelrich/blaze
def test_repr_html_on_no_resources_symbol():
    t = symbol('t', '5 * {id: int, name: string, balance: int}')
    assert to_html(t) == 't'
コード例 #8
0
ファイル: test_interactive.py プロジェクト: gyenney/Tools
def test_to_html_on_arrays():
    s = to_html(Data(np.ones((2, 2))))
    assert "1" in s
    assert "br>" in s
コード例 #9
0
ファイル: test_interactive.py プロジェクト: gyenney/Tools
def test_repr_html_on_no_resources_symbol():
    t = symbol("t", "5 * {id: int, name: string, balance: int}")
    assert to_html(t) == "t"