tribler.test_integration.test_anon_download
Attributes
Classes
Keep track of a global node identifier. |
|
Mocked manager that always allows shutdown (regardless of the libtorrent state). |
|
An integration test for anonymous downloads. |
Functions
|
Start an HTTP server using the given port and response. |
Module Contents
- tribler.test_integration.test_anon_download.DOWNLOADER = 0
- tribler.test_integration.test_anon_download.RELAY = 1
- tribler.test_integration.test_anon_download.EXIT = 2
- class tribler.test_integration.test_anon_download.GlobalTestSettings
Bases:
ipv8.community.CommunitySettingsKeep track of a global node identifier.
- class tribler.test_integration.test_anon_download.MockDownloadManager
Bases:
tribler.core.libtorrent.download_manager.download_manager.DownloadManagerMocked manager that always allows shutdown (regardless of the libtorrent state).
- async tribler.test_integration.test_anon_download.start_http_server(port: int, response: str) aiohttp.web.AppRunner
Start an HTTP server using the given port and response.
- class tribler.test_integration.test_anon_download.TestAnonymousDownload
Bases:
ipv8.test.base.TestBase[tribler.core.tunnel.community.TriblerTunnelCommunity]An integration test for anonymous downloads.
- MAX_TEST_TIME = 30
- create_node(settings: ipv8.community.CommunitySettings | None = None, create_dht: bool = False, enable_statistics: bool = False) ipv8.test.mocking.ipv8.MockIPv8
Create a downloader, relay, or exit node.
The seeder does not have an overlay!
- async add_mock_download_config(manager: tribler.core.libtorrent.download_manager.download_manager.DownloadManager, hops: int) tribler.core.libtorrent.download_manager.download_config.DownloadConfig
Create a mocked DownloadConfig.
- async start_anon_download(infohash: bytes) tribler.core.libtorrent.download_manager.download.Download
Start an anonymous download in the main Tribler session.