-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathloadtest.py
More file actions
23 lines (15 loc) · 759 Bytes
/
loadtest.py
File metadata and controls
23 lines (15 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from flask import Flask, session, render_template, request, jsonify, redirect, url_for, abort
from recordUserInput import Composition, InputState, emptyArray, empty_comp
from database.DBHandler import databaseManager
from datetime import timedelta
testString = "g$|nnsmeUs|jEnUovoUNEjevMnnn|nnyy|eEnUnmv"
# measure list that should be stored in db after .getCompMeasureList()
testMeasureList = ["nnsmeUs", "jEnUoU", "oUNEjeU", "Mnnn", "nnyy", "eEnUnmU"]
temp = Composition(empty_comp)
temp.composition = testString
temp.printComposition()
print("measureList to DB: ", temp.getCompMeasureList())
temp.composition = ""
# takes in list Measurelist and turns it back into original testString
temp.loadComposition(testMeasureList)
temp.printComposition()