From 152be62e3ff9091417014e836855f5a01620c3f5 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Tue, 2 May 2023 11:54:34 -0700 Subject: [PATCH] drop unneeded comment, autosaved w/ sqlite now, add new test to write --- ui/medashare/cli.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/medashare/cli.py b/ui/medashare/cli.py index b4b7993..5cf65c6 100644 --- a/ui/medashare/cli.py +++ b/ui/medashare/cli.py @@ -1396,9 +1396,6 @@ def cmd_list(options, persona, objstr, cache): for k, v in _iterdictlist(j): print('%s:\t%s' % (k, v)) - # This is needed so that if it creates a FileObj, which may be - # expensive (hashing large file), that it gets saved. - def handle_bittorrent(fname, persona, objstr): with open(fname, 'rb') as fp: torrent = bencode.bdecode(fp.read()) @@ -2766,6 +2763,7 @@ class _TestCases(unittest.TestCase): 'ERROR: file not found: \'foo\'\n') # Tests to add: +# that cache is updated on modify cmd # add tests for dump options uuid and hash # expand mappings to multiple mappings, that is a -> b, b -> c, implies a -> c # support host names in --create