Skip to content

Commit 50d0463

Browse files
committed
release 1.3.0a4 and fix test
1 parent 7979ba5 commit 50d0463

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

docs/changelog.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Change history
22
==============
33

4+
1.3.0a4 (2018-11-15)
5+
6+
* Add ErrHandler.handler_assertion_error.
7+
48
1.3.0a3 (2018-11-11)
59

610
* Hobbit startproject cmd support celery option.

hobbit_core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = [1, 3, 0, 'a3']
1+
VERSION = [1, 3, 0, 'a4']

tests/test_err_handler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- encoding: utf-8 -*-
12
import json
23

34
from sqlalchemy.orm import exc as orm_exc
@@ -38,4 +39,6 @@ def test_others(self):
3839
assert resp.status_code == 500
3940
data = json.loads(resp.get_data())
4041
assert data['message'] == u'服务器内部错误'
41-
assert data['detail'] == "Exception('msg')"
42+
# py27,py36 == "Exception('msg',)"
43+
# py37 == "Exception('msg')"
44+
assert data['detail'].startswith("Exception('msg'")

0 commit comments

Comments
 (0)