From 396c49f7c6ed638e208926428a218f419739fb38 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Tue, 12 Feb 2019 11:30:40 -0500 Subject: [PATCH] passing get, file list and file delete tests --- tests/integration/test_file_commands.py | 2 +- tests/integration/testcase.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/integration/test_file_commands.py b/tests/integration/test_file_commands.py index 2d54305e0..32df77a40 100644 --- a/tests/integration/test_file_commands.py +++ b/tests/integration/test_file_commands.py @@ -10,7 +10,7 @@ class FileCommands(CommandTestCase): await self.make_claim('foo', '0.01') await self.make_claim('foo2', '0.01') - file1, file2 = self.daemon.jsonrpc_file_list() + file1, file2 = self.daemon.jsonrpc_file_list('claim_name') self.assertEqual(file1['claim_name'], 'foo') self.assertEqual(file2['claim_name'], 'foo2') diff --git a/tests/integration/testcase.py b/tests/integration/testcase.py index c956cd866..317979c61 100644 --- a/tests/integration/testcase.py +++ b/tests/integration/testcase.py @@ -24,6 +24,7 @@ from lbrynet.extras.daemon.ComponentManager import ComponentManager from lbrynet.extras.daemon.storage import SQLiteStorage from lbrynet.blob.blob_manager import BlobFileManager from lbrynet.stream.reflector.server import ReflectorServer +from lbrynet.blob_exchange.server import BlobServer class ExchangeRateManager: @@ -113,6 +114,9 @@ class CommandTestCase(IntegrationTestCase): self.server_storage = SQLiteStorage(Config(), ':memory:') await self.server_storage.open() self.server_blob_manager = BlobFileManager(self.loop, server_tmp_dir, self.server_storage) + self.server = BlobServer(self.loop, self.server_blob_manager, 'bQEaw42GXsgCAGio1nxFncJSyRmnztSCjP') + self.server.start_server(5567, '127.0.0.1') + await self.server.started_listening.wait() self.reflector = ReflectorServer(self.server_blob_manager) self.reflector.start_server(5566, '127.0.0.1')