Browse Source

drop unneeded comment, autosaved w/ sqlite now, add new test to write

main
John-Mark Gurney 1 year ago
parent
commit
152be62e3f
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      ui/medashare/cli.py

+ 1
- 3
ui/medashare/cli.py View File

@@ -1396,9 +1396,6 @@ def cmd_list(options, persona, objstr, cache):
for k, v in _iterdictlist(j): for k, v in _iterdictlist(j):
print('%s:\t%s' % (k, v)) 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): def handle_bittorrent(fname, persona, objstr):
with open(fname, 'rb') as fp: with open(fname, 'rb') as fp:
torrent = bencode.bdecode(fp.read()) torrent = bencode.bdecode(fp.read())
@@ -2766,6 +2763,7 @@ class _TestCases(unittest.TestCase):
'ERROR: file not found: \'foo\'\n') 'ERROR: file not found: \'foo\'\n')


# Tests to add: # Tests to add:
# that cache is updated on modify cmd
# add tests for dump options uuid and hash # add tests for dump options uuid and hash
# expand mappings to multiple mappings, that is a -> b, b -> c, implies a -> c # expand mappings to multiple mappings, that is a -> b, b -> c, implies a -> c
# support host names in --create # support host names in --create

Loading…
Cancel
Save