Skip to content

Commit

Permalink
import pytest instead of pytest.mark
Browse files Browse the repository at this point in the history
  • Loading branch information
janusheide committed Feb 20, 2024
1 parent 359b12d commit 9112d6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_multipart.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from typing import TYPE_CHECKING
from unittest.mock import Mock

import pytest
import yaml
from pytest import mark

from multipart.decoders import Base64Decoder, QuotedPrintableDecoder
from multipart.exceptions import DecodeError, FileError, FormParserError, MultipartParseError
Expand Down Expand Up @@ -906,7 +906,7 @@ def test_feed_blocks(self):
# Assert that our field is here.
self.assert_field(b"field", b"0123456789ABCDEFGHIJ0123456789ABCDEFGHIJ")

@mark.slow_test
@pytest.mark.slow_test
def test_request_body_fuzz(self):
"""
This test randomly fuzzes the request body to ensure that no strange
Expand Down Expand Up @@ -979,7 +979,7 @@ def test_request_body_fuzz(self):
print("Failures: %d" % (failures,))
print("Exceptions: %d" % (exceptions,))

@mark.slow_test
@pytest.mark.slow_test
def test_request_body_fuzz_random_data(self):
"""
This test will fuzz the multipart parser with some number of iterations
Expand Down

0 comments on commit 9112d6f

Please sign in to comment.