From 02a042f864492606f4c76ea98c9d893ea2156f39 Mon Sep 17 00:00:00 2001 From: Ethan Henderson Date: Sun, 9 Jan 2022 20:08:17 +0000 Subject: [PATCH] Correct testing issues --- chatto/youtube.py | 2 +- tests/test_stream.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chatto/youtube.py b/chatto/youtube.py index 394b344..ac3f051 100644 --- a/chatto/youtube.py +++ b/chatto/youtube.py @@ -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") diff --git a/tests/test_stream.py b/tests/test_stream.py index 0f8c0ad..2a5a9e0 100644 --- a/tests/test_stream.py +++ b/tests/test_stream.py @@ -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"