diff --git a/tests/unit/engines/seedpeer_fixture.html b/tests/unit/engines/seedpeer_fixture.html
new file mode 100644
index 000000000..28207bfad
--- /dev/null
+++ b/tests/unit/engines/seedpeer_fixture.html
@@ -0,0 +1,110 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/unit/engines/test_seedpeer.py b/tests/unit/engines/test_seedpeer.py
index 379282d19..37b2de8e4 100644
--- a/tests/unit/engines/test_seedpeer.py
+++ b/tests/unit/engines/test_seedpeer.py
@@ -6,118 +6,10 @@ from datetime import datetime
class TestSeedPeerEngine(SearxTestCase):
- html = """
-
-
-
-
-
-
-
-
-
-
- """
+ html = ''
+ with open('./tests/unit/engines/seedpeer_fixture.html') as fixture:
+ html += fixture.read()
def test_request(self):
query = 'test_query'
@@ -156,4 +48,4 @@ class TestSeedPeerEngine(SearxTestCase):
)
self.assertEqual(results[0]['content'], '2.48 GB, 1 day')
self.assertEqual(results[0]['seed'], '861')
- self.assertEqual(results[0]['leech'], '332')
\ No newline at end of file
+ self.assertEqual(results[0]['leech'], '332')