Skip to content

Commit 794a40f

Browse files
committed
Add yuzp1996 to default_data.json
Add yuzp1996 to default_data.json. Fix bug that test can not pass because of six is no longer supported in Python3 so I delete the moudle six and delete the related logic. Signed-off-by: yuzhipeng <[email protected]>
1 parent b2a7186 commit 794a40f

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ jobs:
66

77
before_install:
88
- sudo pip install tox
9+
- sudo pip install six
910

1011
script:
1112
- tox -epy36

default_data.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36522,6 +36522,17 @@
3652236522
"user_name": "Wenzhi Yu",
3652336523
3652436524
},
36525+
{
36526+
"github_id": "yuzp1996",
36527+
"companies": [
36528+
{
36529+
"company_name": "Alauda",
36530+
"end_date": null
36531+
}
36532+
],
36533+
"user_name": "yuzhipeng",
36534+
36535+
},
3652536536
{
3652636537
"github_id": "yxpoke",
3652736538
"companies": [

tests/test_config_files.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import json
1818

1919
import jsonschema
20-
import six
2120
import testtools
2221

2322
DEFAULT_DATA_JSON_PATH = 'default_data.json'
@@ -50,10 +49,7 @@ def dict_raise_on_duplicates(ordered_pairs):
5049
class TestConfigFiles(testtools.TestCase):
5150

5251
def _read_raw_file(self, file_name):
53-
if six.PY3:
54-
opener = functools.partial(open, encoding='utf8')
55-
else:
56-
opener = open
52+
opener = open
5753
with opener(file_name, 'r') as content_file:
5854
return content_file.read()
5955

0 commit comments

Comments
 (0)