at master 1.1 kB view raw
1diff --git a/streaming_form_data/targets.py b/streaming_form_data/targets.py 2index a399f3a..b816714 100644 3--- a/streaming_form_data/targets.py 4+++ b/streaming_form_data/targets.py 5@@ -1,6 +1,5 @@ 6 import hashlib 7 from pathlib import Path 8-import smart_open # type: ignore 9 from typing import Callable, List, Optional 10 11 12@@ -164,6 +163,7 @@ class S3Target(BaseTarget): 13 S3Target enables chunked uploads to S3 buckets (using smart_open)""" 14 15 def __init__(self, file_path, mode, transport_params=None, **kwargs): 16+ raise Exception("Nixpkgs: disabled") 17 super().__init__(**kwargs) 18 19 self._file_path = file_path 20diff --git a/tests/test_targets.py b/tests/test_targets.py 21index 0cc79ab..78ab40b 100644 22--- a/tests/test_targets.py 23+++ b/tests/test_targets.py 24@@ -2,8 +2,6 @@ import os.path 25 import tempfile 26 27 import pytest 28-from moto import mock_s3 29-import boto3 30 31 from streaming_form_data.targets import ( 32 BaseTarget, 33@@ -271,6 +269,7 @@ def mock_client(): 34 yield client 35 36 37+@pytest.mark.skip 38 def test_s3_upload(mock_client): 39 test_key = "test.txt" 40 path = f"s3://{BUCKET_NAME}/{test_key}"