From bd382025d17c41ce027cb9c1a2195b416e19292d Mon Sep 17 00:00:00 2001 From: Michaelyin Date: Wed, 17 Jan 2024 17:08:33 +0800 Subject: [PATCH] fix unittest --- tests/test_stream.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_stream.py b/tests/test_stream.py index eb87833..dc95eac 100644 --- a/tests/test_stream.py +++ b/tests/test_stream.py @@ -1,7 +1,8 @@ from django.http import HttpRequest from django.utils.safestring import mark_safe -from turbo_helper import TURBO_STREAM_CONTENT_TYPE, turbo_stream +from turbo_helper import turbo_stream +from turbo_helper.constants import TURBO_STREAM_MIME_TYPE class TestTurboStream: @@ -85,7 +86,7 @@ def test_response(self, rf): ] ) - assert response.headers["content-type"] == TURBO_STREAM_CONTENT_TYPE + assert response.headers["content-type"] == TURBO_STREAM_MIME_TYPE assert ( ''