beam: fix hardcoded sys.path in test_lcs/toposort + make merge_intervals discoverable
This commit is contained in:
1 parent
23eaa56f05
commit
a960d5a700
3 files changed
+9
-5
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
sys.path.insert(0, "/root/.hermes/wizard-outputs/beam")
|
||||
import os, sys
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
from lcs import lcs_length, lcs, lcs_diff
|
||||
|
||||
|
||||
|
||||
@@ -30,4 +30,8 @@ def test_dup():
|
||||
if __name__=="__main__":
|
||||
for n in [x for x in globals() if x.startswith("test_")]:
|
||||
globals()[n]()
|
||||
print("ALL TESTS PASSED")
|
||||
print("ALL TESTS PASSED")
|
||||
|
||||
# Run at import time so unittest discover exercises these cases.
|
||||
for n in [x for x in globals() if x.startswith("test_")]:
|
||||
globals()[n]()
|
||||
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
sys.path.insert(0, "/root/.hermes/wizard-outputs/beam")
|
||||
import os, sys
|
||||
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
from toposort import topo_sort
|
||||
|
||||
def check(name, cond):
|
||||
|
||||
Reference in new issue
Block a user