diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-06-24 17:38:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-06-24 17:38:33 +0000 |
commit | f702b50b6ac6cb2e1e0e848a629a623f323c9de2 (patch) | |
tree | 67d787608695391e5edc2eb245b3943302ba1734 /deluge/tests/test_core.py | |
parent | Releasing debian version 2.1.1-5. (diff) | |
download | deluge-f702b50b6ac6cb2e1e0e848a629a623f323c9de2.tar.xz deluge-f702b50b6ac6cb2e1e0e848a629a623f323c9de2.zip |
Merging upstream version 2.1.2~dev0+20230529.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'deluge/tests/test_core.py')
-rw-r--r-- | deluge/tests/test_core.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/deluge/tests/test_core.py b/deluge/tests/test_core.py index 6a3fb95..c2f6333 100644 --- a/deluge/tests/test_core.py +++ b/deluge/tests/test_core.py @@ -116,9 +116,9 @@ class TestCore(BaseTestCase): self.patch( deluge.core.torrentmanager, 'LT_DEFAULT_ADD_TORRENT_FLAGS', - lt.add_torrent_params_flags_t.flag_auto_managed - | lt.add_torrent_params_flags_t.flag_update_subscribe - | lt.add_torrent_params_flags_t.flag_apply_ip_filter, + lt.torrent_flags.auto_managed + | lt.torrent_flags.update_subscribe + | lt.torrent_flags.apply_ip_filter, ) options = {'add_paused': paused, 'auto_managed': False} filepath = common.get_test_data_file(filename) @@ -188,7 +188,6 @@ class TestCore(BaseTestCase): assert torrent_id == info_hash assert not os.path.isfile(mock_mkstemp[1]) - @pytest_twisted.ensureDeferred async def test_add_torrent_url_with_cookie(self): url = 'http://localhost:%d/cookie' % self.listen_port options = {} @@ -201,7 +200,6 @@ class TestCore(BaseTestCase): result = await self.core.add_torrent_url(url, options, headers) assert result == info_hash - @pytest_twisted.ensureDeferred async def test_add_torrent_url_with_redirect(self): url = 'http://localhost:%d/redirect' % self.listen_port options = {} @@ -210,7 +208,6 @@ class TestCore(BaseTestCase): result = await self.core.add_torrent_url(url, options) assert result == info_hash - @pytest_twisted.ensureDeferred async def test_add_torrent_url_with_partial_download(self): url = 'http://localhost:%d/partial' % self.listen_port options = {} |