Data-Test-Executer Framework speziell zum Test von Datenverarbeitungen mit Datengenerierung, Systemvorbereitungen, Einspielungen, ganzheitlicher diversifizierender Vergleich
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

35 lines
784 B

import json
import re
import yaml
import basic.program
import tools.file_abstract
import basic.constants as B
import tools.data_const as D
import tools.file_tool
from basic import toolHandling
class FileFcts(tools.file_abstract.FileFcts):
def __init__(self):
pass
def load_file(self, path):
"""
this function parses the text and translates it to dict
:param text:
:return:
"""
with open(path, 'r', encoding="utf-8") as file:
doc = yaml.full_load(file)
file.close()
return doc
def dump_file(self, data, path=""):
if path == "":
return yaml.dump(data)
with open(path, 'w', encoding="utf-8") as file:
yaml.dump(data, file)
file.close()