Skip to content

Commit 99607bd

Browse files
committed
update tincan version
1 parent 9a06378 commit 99607bd

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
'tincan/conversions',
88
'tincan/documents',
99
],
10-
version='0.0.5',
10+
version='1.0.0',
1111
description='A Python library for implementing Tin Can API.',
1212
author='Rustici Software',
1313
author_email='mailto:support+tincanpython@tincanapi.com',

test/statement_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,14 +427,14 @@ def test_ToJSON(self):
427427
'"attachments": [{"usageType": "test"}], '
428428
'"object": {"name": "test", "objectType": "Agent"}, '
429429
'"actor": {"name": "test", "objectType": "Agent"}, '
430-
'"version": "1.0.1", '
430+
'"version": "1.0.3", '
431431
'"authority": {"name": "test", "objectType": "Agent"}, '
432432
'"context": {"registration": "016699c6-d600-48a7-96ab-86187498f16f"}, '
433433
'"id": "016699c6-d600-48a7-96ab-86187498f16f"}'))
434434

435435
def test_ToJSONEmpty(self):
436436
statement = Statement()
437-
self.assertEqual(json.loads(statement.to_json()), json.loads('{"version": "1.0.1"}'))
437+
self.assertEqual(json.loads(statement.to_json()), json.loads('{"version": "1.0.3"}'))
438438

439439
def test_FromJSONToJSON(self):
440440
json_str = '{"id":"016699c6-d600-48a7-96ab-86187498f16f", ' \
@@ -458,7 +458,7 @@ def test_FromJSONToJSON(self):
458458
'"attachments": [{"usageType": "test"}], '
459459
'"object": {"name": "test", "objectType": "Agent"}, '
460460
'"actor": {"name": "test", "objectType": "Agent"}, '
461-
'"version": "1.0.1", '
461+
'"version": "1.0.3", '
462462
'"authority": {"name": "test", "objectType": "Agent"}, '
463463
'"context": {"registration": "016699c6-d600-48a7-96ab-86187498f16f"}, '
464464
'"id": "016699c6-d600-48a7-96ab-86187498f16f"}'))

test/version_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
class VersionTest(unittest.TestCase):
2525
def test_Supported(self):
26-
self.assertEqual(Version.supported, ["1.0.1", "1.0.0"])
26+
self.assertEqual(Version.supported, ["1.0.3", "1.0.2", "1.0.1", "1.0.0"])
2727

2828
def test_Latest(self):
2929
self.assertEqual(Version.latest, Version.supported[0])

tincan/about.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def check_version(version):
6262
:type version: list of str or tuple of str or basestring or unicode
6363
:raises: ValueError
6464
"""
65-
if version in ['1.0.2', '1.0.1', '1.0.0', '0.95', '0.9']:
65+
if version in ['1.0.3', '1.0.2', '1.0.1', '1.0.0', '0.95', '0.9']:
6666
return
6767

6868
# Construct the error message

tincan/version.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
class Version(object):
2323
supported = [
24+
'1.0.3',
25+
'1.0.2',
2426
'1.0.1',
2527
'1.0.0',
2628
]

0 commit comments

Comments
 (0)