Exemple #1
0
 def get_content_from_path(filepath: str):
     """ Takes a string, converts to a pathlib Path and loads the file as text. """
     return MLSchema.create_object(IO._load(filepath))
 def test_save_object_to_disk(self):
     content = SampleSubmissions.FULL_SUBMISSIONS.DATAPATH
     ml_object = MLSchema.create_object(content)
     ml_object.data_store = None
     ml_object.connection.endpoint = 'http://newsite.com'