Rev 5777: Merge config-concrete-stores into config-section-matchers resolving conflicts in file:///home/vila/src/bzr/experimental/config/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Tue Apr 12 11:37:08 UTC 2011
At file:///home/vila/src/bzr/experimental/config/
------------------------------------------------------------
revno: 5777 [merge]
revision-id: v.ladeuil+lp at free.fr-20110412113707-a3fefdnwb82kmbgq
parent: v.ladeuil+lp at free.fr-20110412113351-dtimomuvaq1q351y
parent: v.ladeuil+lp at free.fr-20110412113600-69077kf9ve5z6mtz
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: config-section-matchers
timestamp: Tue 2011-04-12 13:37:07 +0200
message:
Merge config-concrete-stores into config-section-matchers resolving conflicts
modified:
bzrlib/tests/test_config.py testconfig.py-20051011041908-742d0c15d8d8c8eb
-------------- next part --------------
=== modified file 'bzrlib/tests/test_config.py'
--- a/bzrlib/tests/test_config.py 2011-04-12 11:33:51 +0000
+++ b/bzrlib/tests/test_config.py 2011-04-12 11:37:07 +0000
@@ -1904,28 +1904,6 @@
self.assertEquals(config._NewlyCreatedOption, section.orig['foo'])
-def get_ConfigObjStore(transport, file_name, content=None):
- """Build a ConfigObjStore.
-
- :param transport: The transport where the store lives.
-
- :param file_name: The name of the store.
-
- :param content: A provided content to inject into the built store.
-
- If provided, the content is added to the store but without saving it on
- disk. It should be a string or a unicode string in the ConfigObj syntax.
- While this poses a constraint on other store implementations, it keeps a
- simple syntax usable by test writers. Note that the other store
- implementations can rely on ConfigObj to parse the content and get the
- option definitions and values from it.
- """
- store = config.ConfigObjStore(transport, file_name)
- if content is not None:
- store._load_from_string(content)
- return store
-
-
class TestStore(tests.TestCaseWithTransport):
def assertSectionContent(self, expected, section):
@@ -2127,19 +2105,6 @@
# at possible fallouts for concurrent lockers -- vila 20110-04-06
-class TestConcreteConfigObjStores(tests.TestCaseWithTransport):
-
- def test_global_store(self):
- store = config.GlobalStore()
-
- def test_location_store(self):
- store = config.LocationStore()
-
- def test_branch_store(self):
- b = self.make_branch('.')
- store = config.BranchStore(b)
-
-
class TestSectionMatcher(TestStore):
scenarios = [('location', {'matcher': config.LocationMatcher})]
More information about the bazaar-commits
mailing list