from invoke import task, Collection

from . import build, deploy, provision

@task(aliases=['ipython'])
def shell(c):
    "Load a REPL with project state already set up."
    pass

@task(aliases=['run_tests'], default=True)
def test(c):
    "Run the test suite with baked-in args."
    pass

ns = Collection(shell, test, build, deploy, provision)

@@ -285,16 +285,165 @@
   pass%0A%0A
+# NOTE: using build's internal collection directly as a way of ensuring a%0A# corner case (collection 'named' via local kwarg) gets tested for --list.%0A
 ns = Col
@@ -462,23 +462,16 @@
 l, test,
- build,
  deploy,
@@ -480,10 +480,26 @@
 rovision
+, build=build.ns
 )%0A

Tweak tree-of-tasks fixture to expose #528