-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed inheritance not merging values
- Loading branch information
1 parent
40500fc
commit 1f66ad6
Showing
7 changed files
with
117 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
from uranium.config import load_config_from_string | ||
from uranium.config import Config | ||
|
||
|
||
class TestConfigLoad(object): | ||
|
||
def test_load_empty_string(self): | ||
""" make sure that loading an empty string works """ | ||
load_config_from_string("") | ||
Config.load_from_string("") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from uranium.config import _recursive_merge | ||
from nose.tools import eq_ | ||
|
||
|
||
def get_from(): | ||
return { | ||
'phases': { | ||
'before-eggs': ['zpv'] | ||
} | ||
} | ||
|
||
|
||
def get_to(): | ||
return { | ||
'phases': { | ||
'after-eggs': ['test'] | ||
} | ||
} | ||
|
||
|
||
class TestRecursiveMerge(object): | ||
|
||
def setUp(self): | ||
self.result = get_to() | ||
_recursive_merge(self.result, get_from()) | ||
|
||
def test_recursive_merge(self): | ||
eq_(self.result['phases'], { | ||
'before-eggs': ['zpv'], | ||
'after-eggs': ['test'] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters