Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemia committed Apr 9, 2024
1 parent a48faa7 commit 3e7bffd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 141 deletions.
61 changes: 0 additions & 61 deletions src/ffmpeg/dag/tests/__snapshots__/test_schema.ambr

This file was deleted.

This file was deleted.

16 changes: 8 additions & 8 deletions src/ffmpeg/dag/tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import pytest
from syrupy.assertion import SnapshotAssertion
from syrupy.extensions.image import PNGImageSnapshotExtension, SVGImageSnapshotExtension
from syrupy.extensions.image import PNGImageSnapshotExtension
from syrupy.extensions.json import JSONSnapshotExtension

from ...utils.snapshot import DAGSnapshotExtenstion
Expand Down Expand Up @@ -118,12 +118,12 @@ def test_stream_view(snapshot: SnapshotAssertion) -> None:
with open(png, "rb") as ifile:
assert snapshot(extension_class=PNGImageSnapshotExtension) == ifile.read()

svg = stream.view(format="svg")
# SVG and Dot Result is not stable
# svg = stream.view(format="svg")
# with open(svg, "r") as ifile:
# assert snapshot(extension_class=SVGImageSnapshotExtension) == ifile.read()

with open(svg, "r") as ifile:
assert snapshot(extension_class=SVGImageSnapshotExtension) == ifile.read()
# dot = stream.view(format="dot")

dot = stream.view(format="dot")

with open(dot, "r") as ifile:
assert snapshot() == ifile.read()
# with open(dot, "r") as ifile:
# assert snapshot() == ifile.read()

0 comments on commit 3e7bffd

Please sign in to comment.