Skip to content

Commit

Permalink
Bump to new release 2.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
minio-trusted committed Jun 19, 2017
1 parent 4cc6b09 commit b61d928
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion minio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

__title__ = 'minio-py'
__author__ = 'Minio, Inc.'
__version__ = '2.2.2'
__version__ = '2.2.3'
__license__ = 'Apache 2.0'
__copyright__ = 'Copyright 2015, 2016, 2017 Minio, Inc.'

Expand Down
7 changes: 4 additions & 3 deletions tests/unit/minio_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from nose.tools import raises, eq_

from minio import Minio
from minio import __version__ as minio_version
from minio.api import _DEFAULT_USER_AGENT
from minio.error import InvalidEndpointError, InvalidBucketError
from minio.helpers import get_target_url, is_valid_bucket_name
Expand Down Expand Up @@ -88,14 +89,14 @@ def test_default_user_agent(self):

def test_set_app_info(self):
client = Minio('localhost')
expected_user_agent = _DEFAULT_USER_AGENT + ' hello/2.2.2'
client.set_app_info('hello', '2.2.2')
expected_user_agent = _DEFAULT_USER_AGENT + ' hello/' + minio_version
client.set_app_info('hello', minio_version)
eq_(client._user_agent, expected_user_agent)

@raises(ValueError)
def test_set_app_info_requires_non_empty_name(self):
client = Minio('localhost:9000')
client.set_app_info('', '2.2.2')
client.set_app_info('', minio_version)

@raises(ValueError)
def test_set_app_info_requires_non_empty_version(self):
Expand Down

0 comments on commit b61d928

Please sign in to comment.