from backend.server.video import Video
from backend.server.word import Word
from backend.server.line import Line
from backend.server.frame import Frame
import unittest

def test_keywords():

    new_vid = Video("insertlinkhere", "lecture1")
    new_vid.directory = "./test_vid_5.mp4"
    new_vid.fps = 30

    new_vid.read_preloaded_frame_data()
    new_vid.update_relevant_frames()

    for frame in new_vid.relevant_frames:
        frame.mark_keywords()
        for word in frame.keywords:
            print(word.text)
        print("")
        print("")

if __name__ == '__main__':
    unittest.main()