From 354b4627ed93fa154776fc6a27a938b748fa0f3d Mon Sep 17 00:00:00 2001
From: Nick Sweeting <git@sweeting.me>
Date: Tue, 30 Mar 2021 23:39:11 -0400
Subject: [PATCH] fix tests

---
 tests/test_list.py   | 4 ++--
 tests/test_remove.py | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/test_list.py b/tests/test_list.py
index 75fa0ec8..a99ed645 100644
--- a/tests/test_list.py
+++ b/tests/test_list.py
@@ -50,7 +50,7 @@ def test_list_csv_headers(process, disable_extractors_dict):
 
 def test_list_index_with_wrong_flags(process):
     list_process = subprocess.run(["archivebox", "list", "--with-headers"], capture_output=True)
-    assert "--with-headers can only be used with --json, --html or --csv options." in list_process.stderr.decode("utf-8")
+    assert "--with-headers can only be used with --json, --html or --csv options" in list_process.stderr.decode("utf-8")
 
 def test_link_sort_by_url(process, disable_extractors_dict):
     subprocess.run(["archivebox", "add", "http://127.0.0.1:8080/static/iana.org.html", "--depth=0"],
@@ -64,4 +64,4 @@ def test_link_sort_by_url(process, disable_extractors_dict):
 
     list_process = subprocess.run(["archivebox", "list", "--sort=url"], capture_output=True)
     link_list = list_process.stdout.decode("utf-8").split("\n")
-    assert "http://127.0.0.1:8080/static/example.com.html" in link_list[0]
\ No newline at end of file
+    assert "http://127.0.0.1:8080/static/example.com.html" in link_list[0]
diff --git a/tests/test_remove.py b/tests/test_remove.py
index 77189ae7..76bbc009 100644
--- a/tests/test_remove.py
+++ b/tests/test_remove.py
@@ -104,8 +104,8 @@ def test_remove_before(tmp_path, process, disable_extractors_dict):
     conn.commit()
     conn.close()
 
-    lowerts = lowerts[0].split(".")[0]
-    higherts = higherts[0].split(".")[0]
+    lowerts = lowerts[0]
+    higherts = higherts[0]
 
     # before is less than, so only the lower snapshot gets deleted
     subprocess.run(['archivebox', 'remove', '--filter-type=regex', '.*', '--yes', '--delete', '--before', higherts], capture_output=True)