Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make libtorrent optional and skip test which depends on it #3395

Merged
merged 1 commit into from
Aug 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/integration/datanetwork/test_file_commands.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from unittest import skipIf
import asyncio
import os
from binascii import hexlify

from lbry.schema import Claim
from lbry.testcase import CommandTestCase
from lbry.torrent.session import TorrentSession
from lbry.extras.daemon.components import TorrentSession
from lbry.wallet import Transaction


Expand Down Expand Up @@ -40,6 +41,7 @@ async def initialize_torrent(self, tx_to_update=None):
self.client_session.wait_start = False # fixme: this is super slow on tests
return tx, btih

@skipIf(TorrentSession is None, "libtorrent not installed")
async def test_download_torrent(self):
tx, btih = await self.initialize_torrent()
self.assertNotIn('error', await self.out(self.daemon.jsonrpc_get('torrent')))
Expand Down