From f38f94ff35b304c356a7eb660919350dbafacf10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Harasimowicz?= Date: Sat, 4 Mar 2017 23:43:25 +0100 Subject: [PATCH] Updated tests --- .gitignore | 2 ++ tests/test_sample_projects.py | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1c97fe3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.cache +__pycache__/ diff --git a/tests/test_sample_projects.py b/tests/test_sample_projects.py index 95fe487..4c874ef 100644 --- a/tests/test_sample_projects.py +++ b/tests/test_sample_projects.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -import os from contextlib import contextmanager from cookiecutter.utils import rmtree @@ -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 \ No newline at end of file + assert 'export ENVIRON_SECRET_KEY=FOR DEV ONLY - CHANGE ME' in lines + assert 'export ENVIRON_DATABASE_URL=postgresql://path_to_database' in lines \ No newline at end of file