Spaces:
Build error
Build error
"""Test loadtext.""" | |
import pytest | |
from radiobee.loadtext import loadtext | |
def test_loadtext(): | |
"""Test loadtext.""" | |
_ = loadtext("data/test_en.txt") | |
if _ is not None: | |
_ = [elm for elm in _.splitlines() if elm.strip()] | |
assert len(_) == 33 | |
def test_loadtext_from_dir(): | |
"""Test test_loadtext_from_dir.""" | |
_ = loadtext(".") | |