Add a hook for yaml files.

This commit is contained in:
Anthony Sottile 2014-04-03 21:36:03 -07:00
parent 212b3dc49d
commit 3e45f53e68
8 changed files with 59 additions and 3 deletions

0
testing/__init__.py Normal file
View file

View file

@ -0,0 +1,2 @@
# It's surprisingly hard to make invalid yaml
a: "

View file

@ -0,0 +1 @@
im: ok yaml

9
testing/util.py Normal file
View file

@ -0,0 +1,9 @@
import os.path
TESTING_DIR = os.path.abspath(os.path.dirname(__file__))
def get_resource_path(path):
return os.path.join(TESTING_DIR, 'resources', path)