|
@@ -411,6 +411,14 @@ def defaultinit(casf): |
|
|
casf.register(IPFSCAS()) |
|
|
casf.register(IPFSCAS()) |
|
|
casf.register(HTTPSCAS()) |
|
|
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 |
|
|
# The global version |
|
|
_casfinder = CASFinder() |
|
|
_casfinder = CASFinder() |
|
|
load_mod_aliases = _casfinder.load_mod_aliases |
|
|
load_mod_aliases = _casfinder.load_mod_aliases |
|
@@ -789,16 +797,6 @@ class Test(unittest.TestCase): |
|
|
# this case, BOTH hashse have to be checked. |
|
|
# this case, BOTH hashse have to be checked. |
|
|
pass |
|
|
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): |
|
|
def test_filecorruption(self): |
|
|
cachedir = self.tempdir / 'cachedir' |
|
|
cachedir = self.tempdir / 'cachedir' |
|
|
cachedir.mkdir() |
|
|
cachedir.mkdir() |
|
|