-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.py
More file actions
81 lines (66 loc) · 2.37 KB
/
main.py
File metadata and controls
81 lines (66 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# !/usr/bin/env python
"""KnowNow
If the description is long, the first line should be a short summary of KnowNowNav.py
that makes sense on its own, separated from the rest by a newline.
"""
from pathlib import Path
import sys
__DATA = Path.cwd() / Path('Data')
__author__ = ["Mauricio Lomeli"]
__date__ = "8/22/2019"
__credits__ = ["Rebecca Zhuo, Smruti Vidwans"]
__license__ = "MIT"
__version__ = "0.0.0.1"
__maintainer__ = "Mauricio Lomeli"
__email__ = "mjlomeli@uci.edu"
__status__ = "Prototype"
# TODO: This is the main file to run everyone's code.
# TODO: This will combine everyone's material and should
# TODO: be the only file anyone should ever see.
def main():
pass
def __reset():
for file in __DATA.iterdir():
if '.pickle' in file.name:
file.unlink()
def __test(tests=None):
if tests is not None and len(tests) > 0:
for test_case in tests:
if test_case == 'FileManager':
#from Activity.Test.testFileManager import testRow, testSpreadsheet, testCell
# Todo: Call test for FileManager
print("Testing FileManager")
elif test_case == 'Neo4j':
#from Activity.Test.testNeo4j import testNeo4jDriver
# Todo: Call test for Neo4j
print("Testing Neo4j")
elif test_case == 'Web':
#from Activity.Test.testWeb import testFlaskDriver
# Todo: Call test for Web
print("Testing Web")
elif test_case == 'NLP':
#from Activity.Test.testNLP import *
# Todo: Call test for NLP
print("Testing NLP")
else:
#from Activity.Test.testFileManager import testRow, testSpreadsheet, testCell
#from Activity.Test.testNeo4j import testNeo4jDriver
#from Activity.Test.testWeb import testFlaskDriver
#from Activity.Test.testNLP import *
# Todo: Call test for everything
print("Testing Everything")
if __name__ == '__main__':
if '-r' in sys.argv:
__reset()
if '-t' in sys.argv:
test = []
if 'Neo4j' in sys.argv:
test.append('Neo4j')
if 'FileManager' in sys.argv:
test.append('FileManager')
if 'Web' in sys.argv:
test.append('Web')
if 'NLP' in sys.argv:
test.append('NLP')
__test(test)
main()