Skip to content

Commit

Permalink
Added reference to fixture dir to context in before_all.
Browse files Browse the repository at this point in the history
  • Loading branch information
plasticine committed Feb 12, 2012
1 parent 01ccc30 commit f1906c3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/environment.py
@@ -1,13 +1,14 @@
from gevent.monkey import patch_all; patch_all()
import gevent
import os
from multiprocessing import Process

from django import db
from django.conf import settings
from django.test.utils import setup_test_environment, teardown_test_environment
from django.core.management import call_command

from henchman import setup_environment
from henchman import setup_test_environment
setup_environment()

from werkzeug.test import Client
Expand All @@ -20,6 +21,7 @@

def before_all(context):
setup_test_environment()
context._fixtures_dir = os.path.join(os.path.dirname(__file__), 'fixtures')

def after_all(context):
# clean up django test DB
Expand Down
Empty file.
Empty file.
Empty file.
10 changes: 10 additions & 0 deletions tests/steps/snakefile.py
@@ -0,0 +1,10 @@
import os

@given(u'that we have a valid Snakefile')
def step(context):
context.snakefile = os.path.join(context._fixtures_dir,
'snakefile/valid_snakefile')

@given(u'the Snakefile is executable')
def step(context):
print context.snakefile

0 comments on commit f1906c3

Please sign in to comment.