Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

simple test case for camera#4112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
illume merged 1 commit intopygame:camera-testfromAlihyp:Pygame
Apr 21, 2024
Merged

Conversation

@Alihyp
Copy link
Contributor

I added a simple test case for camera just to check if it works well


deftest_camera(self):
cameras=pygame.camera.list_cameras()
self.assertTrue(len(cameras)>0,"No cameras found")
Copy link
Member

Choose a reason for hiding this comment

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

If there's no cameras, it's probably better the test is skipped instead.

This way the test should work on more computers too.

@illumeillume changed the base branch frommain tocamera-testApril 21, 2024 12:44
@illumeillume merged commit4ab8de7 intopygame:camera-testApr 21, 2024
@illumeillume mentioned this pull requestApr 21, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@illumeillumeillume left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@Alihyp@illume

[8]ページ先頭

©2009-2025 Movatter.jp