<commit_before><commit_msg>Add a simple test<commit_after>from .. import api, spec, html


def test_render():
    data = dict(x=[1, 2, 3],
                y=[4, 5, 6])
    spec = api.Viz(data)
    s = spec.encode(x='x:Q', y='y:Q').mark_line()
    r = html.render(s)
    assert r is not None
{'fraction_non_alphanumeric': 0.17586206896551723, 'fraction_numerical': 0.020689655172413793, 'mean_word_length': 2.730769230769231, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3068228', 'n_tokens_mistral': 116, 'n_tokens_neox': 109, 'n_words': 29}