Added footage decode featue

This commit is contained in:
Jamie Hardt
2022-11-04 13:19:08 -07:00
parent a7b5adfffb
commit 8e043b7175
2 changed files with 19 additions and 6 deletions

View File

@@ -0,0 +1,15 @@
import unittest
from ptulsconv import footage
class TestFootage(unittest.TestCase):
def test_basic_footage(self):
r1 = "90+0"
f1 = footage.footage_to_seconds(r1)
self.assertEqual(float(f1 or 0), 60.0)
def test_feet_and_frames(self):
r1 = "1+8"
f1 = footage.footage_to_seconds(r1)
self.assertEqual(float(f1 or 0), 1.0)