Replaced JOS XML specifications with preprocessed pickle
This commit is contained in:
@@ -6,10 +6,7 @@ from conversion_utils.jos_msds_and_properties import SpecificationsParser, Conve
|
||||
class JosMsdToPropertiesTestCase(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
specifications_file_name = os.path.join(os.path.dirname(__file__), '../resources/msd-sl.spc.xml')
|
||||
parser = SpecificationsParser()
|
||||
specifications = parser.parse(specifications_file_name)
|
||||
self.converter = Converter(specifications)
|
||||
self.converter = Converter()
|
||||
|
||||
def test_en_en(self):
|
||||
properties = self.converter.msd_to_properties(Msd('Ncfpd', 'en'), 'en')
|
||||
|
||||
@@ -6,10 +6,7 @@ from conversion_utils.jos_msds_and_properties import SpecificationsParser, Conve
|
||||
class JosPropertiesToMsdTestCase(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
specifications_file_name = os.path.join(os.path.dirname(__file__), '../resources/msd-sl.spc.xml')
|
||||
parser = SpecificationsParser()
|
||||
specifications = parser.parse(specifications_file_name)
|
||||
self.converter = Converter(specifications)
|
||||
self.converter = Converter()
|
||||
|
||||
def test_en_en(self):
|
||||
msd = self.converter.properties_to_msd(Properties('noun', {'type':'common', 'gender':'feminine'}, {'number':'dual', 'case':'nominative'}, 'en'), 'en')
|
||||
|
||||
Reference in New Issue
Block a user