2020-07-23 16:07:00 -04:00
|
|
|
from .fixtures import *
|
|
|
|
|
2020-08-04 09:42:30 -04:00
|
|
|
def test_remove_leaves_index_in_consistent_state(tmp_path, process, disable_extractors_dict):
|
2020-07-23 16:07:00 -04:00
|
|
|
os.chdir(tmp_path)
|
2020-08-04 09:42:30 -04:00
|
|
|
subprocess.run(['archivebox', 'add', 'http://127.0.0.1:8080/static/example.com.html'], capture_output=True, env=disable_extractors_dict)
|
2020-07-23 16:07:00 -04:00
|
|
|
remove_process = subprocess.run(['archivebox', 'remove', '127.0.0.1:8080/static/example.com.html', '--yes'], capture_output=True)
|
|
|
|
list_process = subprocess.run(['archivebox', 'list'], capture_output=True)
|
|
|
|
assert "Warning: SQL index does not match JSON index!" not in list_process.stderr.decode("utf-8")
|