add UML, fix structure
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
from parse import parse_csv_to_structure
|
||||
|
||||
|
||||
def check_correct(data):
|
||||
assert isinstance(data, dict)
|
||||
|
||||
for key, value in data.items():
|
||||
assert isinstance(key, str)
|
||||
assert isinstance(value, dict)
|
||||
|
||||
# for subkey, subvalue in value.items():
|
||||
# assert isinstance(subkey, str)
|
||||
# assert isinstance(subvalue, str)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
data = parse_csv_to_structure("input.csv")
|
||||
if check_correct(data):
|
||||
print("yay!")
|
||||
print(data)
|
||||
Reference in New Issue
Block a user