tribler.test_integration.test_hidden_services
Attributes
Classes
Keep track of a global node identifier. |
|
Mocked manager that always allows shutdown (regardless of the libtorrent state). |
|
Wrap all exit sockets in a mock. |
|
An integration test for anonymous downloads. |
Module Contents
- tribler.test_integration.test_hidden_services.DOWNLOADER = 0
- tribler.test_integration.test_hidden_services.SEEDER = 1
- tribler.test_integration.test_hidden_services.RELAYS = [2, 3, 4]
- tribler.test_integration.test_hidden_services.EXITS = [5, 6]
- class tribler.test_integration.test_hidden_services.GlobalTestSettings
Bases:
ipv8.community.CommunitySettingsKeep track of a global node identifier.
- class tribler.test_integration.test_hidden_services.MockDownloadManager
Bases:
tribler.core.libtorrent.download_manager.download_manager.DownloadManagerMocked manager that always allows shutdown (regardless of the libtorrent state).
- class tribler.test_integration.test_hidden_services.MockExitDict
Bases:
dictWrap all exit sockets in a mock.
- class tribler.test_integration.test_hidden_services.TestHiddenServicesDownload
Bases:
ipv8.test.base.TestBase[tribler.core.tunnel.community.TriblerTunnelCommunity]An integration test for anonymous downloads.
- MAX_TEST_TIME = 90
- 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.