-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathmain.py
More file actions
29 lines (21 loc) · 919 Bytes
/
main.py
File metadata and controls
29 lines (21 loc) · 919 Bytes
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
## Add here import statements for all files with tests
from tests.runtime_aggtest.aggtst_base import * # noqa: F403
from sqlite_runner import discover_sqlite_tests # noqa: F403
from orderby_tbl_sqlite import * # noqa: F403
from orderby_tbl_manual import * # noqa: F403
from orderby_int import * # noqa: F403
from orderby_varchar import * # noqa: F403
from orderby_binary_ts import * # noqa: F403
from orderby_arr_time import * # noqa: F403
def main():
"""Run SQLite tests to populate expected results, then run Feldera tests with updated data"""
print("\nRunning SQLite tests")
ta = discover_sqlite_tests(
"orderby_", ["orderby_", "test_"], True
) # runs SQLite and updates .data
print("\nRunning Feldera tests")
ta.run_tests(
"orderby_tests"
) # run Feldera tests using SAME accumulator and objects with updated .data
if __name__ == "__main__":
main()