Skip to content

Commit 07129ab

Browse files
committed
add formal tests
1 parent 3b526b4 commit 07129ab

20 files changed

+92
-22
lines changed

pylottie/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,7 @@ def convertLotties2PIL(
160160
else:
161161
lottie = json.loads(Path(fileName).read_text(encoding="utf-8"))
162162
lotties.append(lottie)
163-
frameData = asyncio.get_event_loop().run_until_complete(
164-
recordLotties([json.dumps(lottie) for lottie in lotties], quality)
165-
)
163+
frameData = asyncio.run(recordLotties([json.dumps(lottie) for lottie in lotties], quality))
166164
imageDataList = []
167165
for index, frameDataInstance in enumerate(frameData):
168166
images = []

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ python = "^3.7"
2525
Pillow = "<10,>=9.0.0"
2626
pyppeteer = "<2,>=1.0.2"
2727

28+
[tool.poetry.dev-dependencies]
29+
imgcompare = "^2.0.1"
30+
pytest = "^6.2.5"
31+
2832
[tool.poetry.scripts]
2933
pylottie = 'pylottie:cli'
3034

test.py

Lines changed: 0 additions & 19 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

test/data/file_0_438_expected.webp

1.01 MB
Loading

0 commit comments

Comments
 (0)