Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion default_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -12189,13 +12189,18 @@
},
{
"company_name": "Microsoft",
"end_date": "2022-Jan-24"
},
{
"company_name": "Udemy",
"end_date": null
}
],
"user_name": "Graham Hayes",
"emails": [
"[email protected]", "[email protected]", "[email protected]", "[email protected]",
"[email protected]", "[email protected]", "[email protected]", "[email protected]"
"[email protected]", "[email protected]", "[email protected]", "[email protected]",
"[email protected]"
]
},
{
Expand Down Expand Up @@ -40324,6 +40329,10 @@
"UCR"
]
},
{
"domains": ["udemy.com"],
"company_name": "Udemy"
},
{
"domains": ["ufscar.br"],
"company_name": "Universidade Federal de São Carlos"
Expand Down
6 changes: 1 addition & 5 deletions tests/test_config_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import json

import jsonschema
import six
import testtools

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

def _read_raw_file(self, file_name):
if six.PY3:
opener = functools.partial(open, encoding='utf8')
else:
opener = open
opener = functools.partial(open, encoding='utf8')
with opener(file_name, 'r') as content_file:
return content_file.read()

Expand Down