|
@@ -6,7 +6,7 @@ import time
|
|
|
|
|
|
|
|
|
class TestGeneral(unittest.TestCase):
|
|
|
-
|
|
|
+ """
|
|
|
def test_find_repetitions(self):
|
|
|
found = find_repetitions([
|
|
|
{'timestamp': 1519769650, 'confidence': 5},
|
|
@@ -49,6 +49,38 @@ class TestGeneral(unittest.TestCase):
|
|
|
filename, md5hash = cloud_download(ad_key='-L6EoklO90painUCd7df')
|
|
|
print(filename, md5hash)
|
|
|
pass
|
|
|
+ """
|
|
|
+
|
|
|
+ def test_repetitions_new_model(self):
|
|
|
+ found = find_repetitions([
|
|
|
+ {'timestamp': 1519769650, 'confidence': 5},
|
|
|
+ {'timestamp': 1519769655, 'confidence': 1},
|
|
|
+ {'timestamp': 1519769660, 'confidence': 1},
|
|
|
+ {'timestamp': 1519769665, 'confidence': 5},
|
|
|
+ {'timestamp': 1519769670, 'confidence': 3},
|
|
|
+ {'timestamp': 1519769675, 'confidence': 3},
|
|
|
+ {'timestamp': 1519769680, 'confidence': 2},
|
|
|
+ {'timestamp': 1519769685, 'confidence': 3},
|
|
|
+ {'timestamp': 1519769690, 'confidence': 9},
|
|
|
+ {'timestamp': 1519769695, 'confidence': 1},
|
|
|
+ {'timestamp': 1519769700, 'confidence': 2},
|
|
|
+ {'timestamp': 1519769705, 'confidence': 2},
|
|
|
+ {'timestamp': 1519769710, 'confidence': 2},
|
|
|
+ {'timestamp': 1519769720, 'confidence': 3},
|
|
|
+ {'timestamp': 1519769725, 'confidence': 3},
|
|
|
+ {'timestamp': 1519769730, 'confidence': 66},
|
|
|
+ {'timestamp': 1519769735, 'confidence': 12},
|
|
|
+ {'timestamp': 1519769735, 'confidence': 30},
|
|
|
+ {'timestamp': 1519769740, 'confidence': 8},
|
|
|
+ {'timestamp': 1519769745, 'confidence': 34},
|
|
|
+ {'timestamp': 1519769750, 'confidence': 3},
|
|
|
+ {'timestamp': 1519769755, 'confidence': 3},
|
|
|
+ {'timestamp': 1519769760, 'confidence': 3},
|
|
|
+ {'timestamp': 1519769765, 'confidence': 6},
|
|
|
+ {'timestamp': 1519769770, 'confidence': 4},
|
|
|
+ ])
|
|
|
+
|
|
|
+ print(found)
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|