Skip to content

Commit

Permalink
Forgot to add some new files.
Browse files Browse the repository at this point in the history
  • Loading branch information
dotsdl committed Mar 16, 2016
1 parent 455416f commit 481157a
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/Bundles.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.. _Bundles:

=================================
Coordinating Treants with Bundles
=================================
Similar to a View, a **Bundle** is an ordered set of Treants that makes it easy to work with
them as a single logical unit.




Reference: Bundle
=================
.. autoclass:: datreant.core.Bundle
:members:
:inherited-members:
26 changes: 26 additions & 0 deletions src/datreant/core/tests/test_manipulators.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
"""Tests for manipulators.
"""

import pytest

import datreant.core as dtr
from datreant.core.manipulators import discover


def test_discover(tmpdir):
with tmpdir.as_cwd():

ghosts = ('inky', 'blinky', 'pinky', 'clyde')

for name in ghosts:
dtr.Treant(
'a/very/deep/directory/structure/that/just/keeps/going/' +
name)

b = discover('.')

assert len(b) == 4

for name in ghosts:
assert name in b.names

0 comments on commit 481157a

Please sign in to comment.