Skip to content

Commit

Permalink
Improve test coverage on config
Browse files Browse the repository at this point in the history
  • Loading branch information
lmignon committed Nov 23, 2015
1 parent f09252b commit e4c8697
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,18 @@ def test_load_merges_exception(self):
ex.exception.message,
'/product_attribute: Merge must be formatted as '
'"remote_name ref".')
config_yaml = """
/product_attribute:
remotes:
oca: https://github.com/OCA/product-attribute.git
merges:
target: oca aggregated_branch
"""
with self.assertRaises(ConfigException) as ex:
config.get_repos(self._parse_config(config_yaml))
self.assertEquals(
ex.exception.message,
'/product_attribute: You should at least define one merge.')

config_yaml = """
/product_attribute:
Expand Down

0 comments on commit e4c8697

Please sign in to comment.