Skip to content

Commit

Permalink
update testcase.
Browse files Browse the repository at this point in the history
  • Loading branch information
huiguangjun committed Jul 4, 2019
1 parent 5a7316d commit 1dda2f4
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion tests/test_api_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import socket
import sys

from common import *
from .common import *


class TestApiBase(OssTestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import datetime
import json

from common import *
from .common import *
from oss2 import to_string


Expand Down
2 changes: 1 addition & 1 deletion tests/test_chinese.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from oss2 import to_bytes, to_string

from common import *
from .common import *


class TestChinese(OssTestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_crc64_combine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

from common import *
from .common import *
import oss2
import crcmod

Expand Down
2 changes: 1 addition & 1 deletion tests/test_crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from oss2.exceptions import OpenApiServerError, OpenApiFormatError, ClientError
from mock import patch

from common import OSS_ID, OSS_SECRET, OSS_REGION, OSS_CMK, OSS_STS_ID, OSS_STS_ARN, OSS_STS_KEY
from .common import OSS_ID, OSS_SECRET, OSS_REGION, OSS_CMK, OSS_STS_ID, OSS_STS_ARN, OSS_STS_KEY
from aliyunsdksts.request.v20150401 import AssumeRoleRequest


Expand Down
2 changes: 1 addition & 1 deletion tests/test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from mock import patch
from functools import partial

from common import *
from .common import *


class SizedFileAdapterForMock(object):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_headers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

from common import *
from .common import *
from oss2.headers import *


Expand Down
2 changes: 1 addition & 1 deletion tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import oss2
import json

from common import *
from .common import *


class TestImage(OssTestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_init.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

from common import *
from .common import *


class TestInit(OssTestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_iterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import oss2

from common import *
from .common import *
from oss2 import to_string


Expand Down
2 changes: 1 addition & 1 deletion tests/test_live_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, parentdir)

from common import *
from .common import *
from oss2.exceptions import *


Expand Down
2 changes: 1 addition & 1 deletion tests/test_multipart.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import oss2
from oss2.utils import calc_obj_crc_from_parts

from common import *
from .common import *
from oss2.headers import OSS_OBJECT_TAGGING, OSS_OBJECT_TAGGING_COPY_DIRECTIVE
from oss2.compat import urlunquote, urlquote

Expand Down
2 changes: 1 addition & 1 deletion tests/test_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from oss2.headers import OSS_OBJECT_TAGGING, OSS_OBJECT_TAGGING_COPY_DIRECTIVE
from oss2.compat import urlunquote, urlquote

from common import *
from .common import *


def now():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_select_csv_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from oss2.exceptions import (ClientError, RequestError, NoSuchBucket,
NotFound, NoSuchKey, Conflict, PositionNotEqualToLength, ObjectNotAppendable, SelectOperationFailed, SelectOperationClientError)
from common import *
from .common import *

from oss2.select_response import SelectResponseAdapter

Expand Down
2 changes: 1 addition & 1 deletion tests/test_select_json_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from oss2.exceptions import (ClientError, RequestError, NoSuchBucket,
NotFound, NoSuchKey, Conflict, PositionNotEqualToLength, ObjectNotAppendable, SelectOperationFailed,SelectOperationClientError)
from common import *
from .common import *

if sys.version_info[0] > 2:
# py3k
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sts.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import requests

from common import *
from .common import *

if oss2.compat.is_py2:
from aliyunsdkcore import client
Expand Down
2 changes: 1 addition & 1 deletion tests/test_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import sys
import time

from common import *
from .common import *

from mock import patch

Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import io
from functools import partial

from common import *
from .common import *

import logging

Expand Down
2 changes: 1 addition & 1 deletion tests/test_website.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import oss2
from oss2 import to_string

from common import *
from .common import *
from oss2.models import (ConditionInlcudeHeader,
Condition,
Redirect,
Expand Down

0 comments on commit 1dda2f4

Please sign in to comment.