Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
harnash committed Mar 4, 2017
1 parent a7dfc9f commit f38f94f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.cache
__pycache__/
7 changes: 3 additions & 4 deletions tests/test_sample_projects.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
import os
from contextlib import contextmanager
from cookiecutter.utils import rmtree

Expand All @@ -24,7 +23,7 @@ def test_envrc(cookies):
extra_context = {'project_name': 'environ'}

with temporary_project(cookies, extra_context=extra_context) as result:
envrc_file = result.project.join('environ', '.envrc')
envrc_file = result.project.join('.envrc')
lines = [x.strip() for x in envrc_file.readlines(cr=False)]
assert 'ENVIRON_SECRET_KEY' in lines
assert 'ENVIRON_DATABASE_URL' in lines
assert 'export ENVIRON_SECRET_KEY=FOR DEV ONLY - CHANGE ME' in lines
assert 'export ENVIRON_DATABASE_URL=postgresql://path_to_database' in lines

0 comments on commit f38f94f

Please sign in to comment.