mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
fix tests
This commit is contained in:
parent
13c2b7c8eb
commit
46a4197514
3 changed files with 7 additions and 7 deletions
|
@ -100,7 +100,7 @@ def test_remove_before(tmp_path, process, disable_extractors_dict):
|
|||
|
||||
conn = sqlite3.connect("index.sqlite3")
|
||||
c = conn.cursor()
|
||||
timestamp = c.execute("SELECT timestamp FROM core_snapshot ORDER BY timestamp ASC").fetchall()
|
||||
timestamp = c.execute("SELECT timestamp FROM core_snapshot ORDER BY timestamp DSC").fetchall()
|
||||
conn.commit()
|
||||
conn.close()
|
||||
|
||||
|
@ -118,7 +118,7 @@ def test_remove_after(tmp_path, process, disable_extractors_dict):
|
|||
|
||||
conn = sqlite3.connect("index.sqlite3")
|
||||
c = conn.cursor()
|
||||
timestamp = c.execute("SELECT timestamp FROM core_snapshot ORDER BY timestamp ASC").fetchall()
|
||||
timestamp = c.execute("SELECT timestamp FROM core_snapshot ORDER BY timestamp DSC").fetchall()
|
||||
conn.commit()
|
||||
conn.close()
|
||||
|
||||
|
@ -127,4 +127,4 @@ def test_remove_after(tmp_path, process, disable_extractors_dict):
|
|||
subprocess.run(['archivebox', 'remove', '--filter-type=regex', '.*', '--yes', '--delete', '--after', str(after[1])], capture_output=True)
|
||||
|
||||
assert (tmp_path / "archive" / timestamp[1][0]).exists()
|
||||
assert not (tmp_path / "archive" / timestamp[0][0]).exists()
|
||||
assert not (tmp_path / "archive" / timestamp[0][0]).exists()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue