-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |