mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-28 13:44:14 -04:00
fix: Save history in main index (to mimic previous behaviour)
This commit is contained in:
parent
7e9d195d13
commit
2aa8d69b72
3 changed files with 19 additions and 4 deletions
tests
|
@ -63,3 +63,14 @@ def test_overwrite_flag_is_accepted(process, disable_extractors_dict):
|
|||
)
|
||||
assert 'unrecognized arguments: --overwrite' not in arg_process.stderr.decode("utf-8")
|
||||
assert 'favicon' in arg_process.stdout.decode('utf-8'), 'archive methods probably didnt run, did overwrite work?'
|
||||
|
||||
def test_add_updates_history_json_index(tmp_path, process, disable_extractors_dict):
|
||||
subprocess.run(
|
||||
["archivebox", "add", "--depth=0", "http://127.0.0.1:8080/static/example.com.html"],
|
||||
capture_output=True,
|
||||
env=disable_extractors_dict,
|
||||
)
|
||||
|
||||
with open(tmp_path / "index.json", "r") as f:
|
||||
output_json = json.load(f)
|
||||
assert output_json["links"][0]["history"] != {}
|
Loading…
Add table
Add a link
Reference in a new issue