From 2799340a01c682357977501af0e580780e45c7da Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Fri, 7 Feb 2020 17:10:16 -0800 Subject: [PATCH] add ideas on what features a cli should have.. drop a place holder test as it got written.. --- casimport/__init__.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/casimport/__init__.py b/casimport/__init__.py index 0a5fd3c..03a10b2 100644 --- a/casimport/__init__.py +++ b/casimport/__init__.py @@ -411,6 +411,14 @@ def defaultinit(casf): casf.register(IPFSCAS()) casf.register(HTTPSCAS()) +def main(): + # Thoughts on supported features: + # automatic pinning/adding to ipfs + # automatic github/gitea url generation + # automatic alias generation + # + pass + # The global version _casfinder = CASFinder() load_mod_aliases = _casfinder.load_mod_aliases @@ -789,16 +797,6 @@ class Test(unittest.TestCase): # this case, BOTH hashse have to be checked. pass - @unittest.skip('todo') - def test_loaderpriority(self): - # XXX - write test to allow you to specify the priority of - # a loader, to ensure that cache stays at top. - # Maybe also think of a way to say local/remote, because - # some loaders may be "more local" than others, like using - # a local ipfs gateway makes more sense than hitting a - # public gateway - pass - def test_filecorruption(self): cachedir = self.tempdir / 'cachedir' cachedir.mkdir()