Skip to content

Commit 454d9ed

Browse files
committed
Fix test error and 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 support in Python3 so I delete the moudle six and delete the related logic. Signed-off-by: yuzhipeng <[email protected]>
1 parent b2a7186 commit 454d9ed

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

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 & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
import functools
1716
import json
1817

1918
import jsonschema
20-
import six
2119
import testtools
2220

2321
DEFAULT_DATA_JSON_PATH = 'default_data.json'
@@ -50,10 +48,7 @@ def dict_raise_on_duplicates(ordered_pairs):
5048
class TestConfigFiles(testtools.TestCase):
5149

5250
def _read_raw_file(self, file_name):
53-
if six.PY3:
54-
opener = functools.partial(open, encoding='utf8')
55-
else:
56-
opener = open
51+
opener = open
5752
with opener(file_name, 'r') as content_file:
5853
return content_file.read()
5954

0 commit comments

Comments
 (0)