Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-python
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-python
Commits
face6a56
Commit
face6a56
authored
May 18, 2011
by
Noah Zoschke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test fixes; update src of injected code
parent
3051ffa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
__main__.py
test/__main__.py
+2
-2
No files found.
test/__main__.py
View file @
face6a56
...
...
@@ -2,8 +2,8 @@ import os
import
re
import
unittest
BIN_DIR
=
os
.
path
.
dirname
(
__file__
)
DATABASES
=
{}
ROOTDIR
=
os
.
path
.
dirname
(
__file__
)
class
TestInjectDBs
(
unittest
.
TestCase
):
def
setUp
(
self
):
...
...
@@ -22,7 +22,7 @@ class TestInjectDBs(unittest.TestCase):
Test the code injected into settings.py to map ENV to settings.DATABASES hash
"""
# read and exec code in this context
with
open
(
os
.
path
.
join
(
ROOTDIR
,
".."
,
"opt/dbs.py
"
))
as
_src
:
with
open
(
os
.
path
.
join
(
BIN_DIR
,
".."
,
"opt/dbs.py.src
"
))
as
_src
:
exec
compile
(
_src
.
read
(),
"dbs.py"
,
"exec"
)
self
.
assertEqual
(
5
,
len
(
DATABASES
))
# default, DATABASE, ONYX, RED, SHARED_DATABASE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment