Fix tests for crash recovery
This commit is contained in:
@@ -17,6 +17,7 @@ def test_require_webhook_url():
|
||||
|
||||
def test_send_information_to_discord(mock_loggers):
|
||||
stream = StreamInformation(
|
||||
id="0",
|
||||
user_id="0",
|
||||
user_name="Test",
|
||||
user_login="test",
|
||||
@@ -56,6 +57,7 @@ def test_send_information_to_discord(mock_loggers):
|
||||
|
||||
def test_send_information_to_discord_fails(mock_loggers):
|
||||
stream = StreamInformation(
|
||||
id="",
|
||||
user_id="",
|
||||
user_name="",
|
||||
user_login="",
|
||||
|
||||
@@ -196,3 +196,5 @@ def test_run_main_streamer_already_live(mock_loggers):
|
||||
finalize_notification_request = requests_mocker.request_history[-1]
|
||||
assert finalize_notification_request.path == "/webhook/messages/123456"
|
||||
assert finalize_notification_request.json()
|
||||
|
||||
os.remove("streams.json")
|
||||
|
||||
Reference in New Issue
Block a user