Skip to content

[backends] Add comprehensive test suite for VideoStreamMoviePy#512

Open
chyang-nycu wants to merge 4 commits intoBreakthrough:mainfrom
chyang-nycu:add-backend-test
Open

[backends] Add comprehensive test suite for VideoStreamMoviePy#512
chyang-nycu wants to merge 4 commits intoBreakthrough:mainfrom
chyang-nycu:add-backend-test

Conversation

@chyang-nycu
Copy link
Copy Markdown

@chyang-nycu chyang-nycu commented Jun 4, 2025

Screenshot 2025-06-05 at 06 18 58

@Breakthrough
Copy link
Copy Markdown
Owner

I like where this is going in concept, but would prefer to have this abstracted over the backend itself similar to the existing test_video_stream.py. Have you considered adding more tests there to increase code coverage?

The tests in that file are run across all backends to ensure consistency, and there might be some overlap.

@Breakthrough Breakthrough self-assigned this Apr 5, 2026
# Attempt invalid seek
try:
video.seek(999999)
except SeekError:

Check notice

Code scanning / CodeQL

Empty except Note test

'except' clause does nothing but pass and there is no explanatory comment.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chyang-nycu can we use Pytest to ensure this is raised?
https://docs.pytest.org/en/7.1.x/how-to/assert.html

@Breakthrough
Copy link
Copy Markdown
Owner

@chyang-nycu are you still open to merging this? It just needs to pass ruff format to be merged.

# Attempt invalid seek
try:
video.seek(999999)
except SeekError:
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chyang-nycu can we use Pytest to ensure this is raised?
https://docs.pytest.org/en/7.1.x/how-to/assert.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants