Skip to content

Commit

Permalink
Correct testing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
parafoxia committed Jan 9, 2022
1 parent 01f77e4 commit 02a042f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chatto/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def run(
## Raises
`Exception` -
A critical error occured and Chatto has to shut down.
A critical error occurred and Chatto has to shut down.
Non-critical errors are ignored and logged.
"""
log.info("\33[1mNow starting bot!\33[0m")
Expand Down
4 changes: 2 additions & 2 deletions tests/test_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ def test_create_stream(stream: Stream) -> None:


def test_create_stream_from_data(stream: Stream, stream_data: dict[str, t.Any]) -> None:
assert stream == Stream.from_data(stream_data)
assert stream == Stream.from_youtube(stream_data)


def test_create_stream_from_bad_data(
stream: Stream, bad_stream_data: dict[str, t.Any]
) -> None:
with pytest.raises(errors.ChannelNotLive) as exc:
assert stream == Stream.from_data(bad_stream_data)
assert stream == Stream.from_youtube(bad_stream_data)
assert str(exc.value) == "the stream has no active chat ID"

0 comments on commit 02a042f

Please sign in to comment.