From 338e8c8fa63ad775840015462146f71a39bb9ed7 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sun, 6 Jun 2021 15:41:16 -0700 Subject: [PATCH] Fixed unit test --- tests/test_adr_entity.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_adr_entity.py b/tests/test_adr_entity.py index 0fa862a..dd635c9 100644 --- a/tests/test_adr_entity.py +++ b/tests/test_adr_entity.py @@ -1,7 +1,7 @@ import unittest from ptulsconv.docparser.tag_compiler import Event -from ptulsconv.docparser.adr_entity import ADRLine +from ptulsconv.docparser.adr_entity import ADRLine, make_entity from fractions import Fraction @@ -21,8 +21,9 @@ class TestADREntity(unittest.TestCase): tags=tags, start=Fraction(0, 1), finish=Fraction(1, 1)) - line = ADRLine.from_event(event) + line = make_entity(event) + self.assertIsInstance(line, ADRLine) self.assertEqual('Bill', line.actor_name) self.assertEqual('Justin', line.character_name) self.assertEqual('"This is a test." (sotto voce)', line.prompt)