with a coffee
This commit is contained in:
1 parent
31b9e85912
commit
0f0fe0f518
7 files changed
+74
-41
No files matched your search
@@ -98,7 +98,8 @@ def test_restart(tmp_dir: Path):
|
||||
assert expt == list_tables(conn)
|
||||
|
||||
|
||||
def test_write_boxes_simple(tmp_dir: Path, mock_tracked_detected_object: pd.DataFrame):
|
||||
def test_write_boxes_simple(tmp_dir: Path,
|
||||
mock_tracked_detected_object: pd.DataFrame):
|
||||
with make_conn(tmp_dir) as conn:
|
||||
dumper = SQLiteDataDumper(conn)
|
||||
dumper.start(Path('/foo/toto.MOV'), 'aabbcc')
|
||||
@@ -130,7 +131,7 @@ def test_write_boxes_with_empty_frame(tmp_dir: Path,
|
||||
with make_conn(tmp_dir) as conn:
|
||||
dumper = SQLiteDataDumper(conn)
|
||||
dumper.start(Path('/foo/toto.MOV'), 'aabbcc')
|
||||
dumper.write_boxes(empty_tracked_detected_object, 40018, 34)
|
||||
dumper.write_boxes(empty_tracked_detected_object, None,40018, 34)
|
||||
|
||||
with make_conn(tmp_dir) as conn:
|
||||
assert 0 == number_of_items_in_table('tracked_detected_object', conn)
|
||||
|
||||
Reference in new issue
Block a user