Skip to content

Commit

Permalink
fix unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-yin committed Jan 17, 2024
1 parent b93d262 commit bd38202
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_stream.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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 (
'<turbo-stream action="append" target="dom_id"><template>OK</template></turbo-stream>'
Expand Down

0 comments on commit bd38202

Please sign in to comment.