yume / tests /test_pretrained.py
Zai
to test dataset loading
50310f8
raw
history blame contribute delete
463 Bytes
import unittest
from yume import Yume, Config
class TestPretrained(unittest.TestCase):
def __init__(self, methodName: str = "runTest") -> None:
super().__init__(methodName)
self.config = Config()
self.yume = Yume(config=self.config)
def test_download(self):
self.yume.load_pretrained()
pass
def test_generation(self):
self.yume.sample()
pass
if __name__ == "__main__":
unittest.main()