Skip to content

Commit

Permalink
mimeType 間違ってた
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Jul 31, 2024
1 parent 2c4a12e commit bda75d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,14 @@ jobs:
- run: rye sync
- run: rye run python run.py macos_arm64
# - run: rye test
# macOS のテストを先にする
- run: rye run pytest tests/test_macos.py -s
- run: rye run pytest tests/test_sendonly_recvonly.py -s
- run: rye run pytest tests/test_messaging.py -s
- run: rye run pytest tests/test_openh264.py -s
- run: rye run pytest tests/test_stats.py -s
- run: rye run pytest tests/test_switched.py -s
- run: rye run pytest tests/test_vad.py -s
- run: rye run pytest tests/test_macos.py -s

# TODO: e2e_windows_test を追加する

Expand Down
8 changes: 4 additions & 4 deletions tests/test_macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def test_macos_h264_sendonly_recvonly(setup):
# codec が無かったら StopIteration 例外が上がる
sendonly_codec_stats = next(s for s in sendonly_stats if s.get("type") == "codec")
# H.264 が採用されているかどうか確認する
assert sendonly_codec_stats["mimeType"] == "video/AV1"
assert sendonly_codec_stats["mimeType"] == "video/H264"

# outbound-rtp が無かったら StopIteration 例外が上がる
outbound_rtp_stats = next(s for s in sendonly_stats if s.get("type") == "outbound-rtp")
Expand All @@ -117,7 +117,7 @@ def test_macos_h264_sendonly_recvonly(setup):
# codec が無かったら StopIteration 例外が上がる
recvonly_codec_stats = next(s for s in recvonly_stats if s.get("type") == "codec")
# H.264 が採用されているかどうか確認する
assert recvonly_codec_stats["mimeType"] == "video/AV1"
assert recvonly_codec_stats["mimeType"] == "video/H264"

# outbound-rtp が無かったら StopIteration 例外が上がる
inbound_rtp_stats = next(s for s in recvonly_stats if s.get("type") == "inbound-rtp")
Expand Down Expand Up @@ -159,7 +159,7 @@ def test_macos_h265_sendonly_recvonly(setup):
# codec が無かったら StopIteration 例外が上がる
sendonly_codec_stats = next(s for s in sendonly_stats if s.get("type") == "codec")
# H.264 が採用されているかどうか確認する
assert sendonly_codec_stats["mimeType"] == "video/AV1"
assert sendonly_codec_stats["mimeType"] == "video/H265"

# outbound-rtp が無かったら StopIteration 例外が上がる
outbound_rtp_stats = next(s for s in sendonly_stats if s.get("type") == "outbound-rtp")
Expand All @@ -170,7 +170,7 @@ def test_macos_h265_sendonly_recvonly(setup):
# codec が無かったら StopIteration 例外が上がる
recvonly_codec_stats = next(s for s in recvonly_stats if s.get("type") == "codec")
# H.264 が採用されているかどうか確認する
assert recvonly_codec_stats["mimeType"] == "video/AV1"
assert recvonly_codec_stats["mimeType"] == "video/H265"

# outbound-rtp が無かったら StopIteration 例外が上がる
inbound_rtp_stats = next(s for s in recvonly_stats if s.get("type") == "inbound-rtp")
Expand Down

0 comments on commit bda75d2

Please sign in to comment.