From eef9adbfcbc6dfb2a88633604d9635af9af1d5da Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sat, 3 Apr 2021 15:50:48 -0400 Subject: [PATCH] fix select invalid test --- tests/test_update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_update.py b/tests/test_update.py index 95a61ce9..04c2b747 100644 --- a/tests/test_update.py +++ b/tests/test_update.py @@ -20,8 +20,8 @@ def test_update_status_invalid(tmp_path, process, disable_extractors_dict): conn = sqlite3.connect(str(tmp_path / "index.sqlite3")) c = conn.cursor() - url = c.execute("SELECT * FROM core_snapshot").fetchone()[1] + url = c.execute("SELECT url FROM core_snapshot").fetchone()[0] conn.commit() conn.close() - assert url == 'http://127.0.0.1:8080/static/example.com.html' \ No newline at end of file + assert url == 'http://127.0.0.1:8080/static/example.com.html'