Rev 5774: Smoke tests are covered now and get_ConfigObjStore is not needed anymore. in file:///home/vila/src/bzr/experimental/config/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Tue Apr 12 11:36:01 UTC 2011
At file:///home/vila/src/bzr/experimental/config/
------------------------------------------------------------
revno: 5774
revision-id: v.ladeuil+lp at free.fr-20110412113600-69077kf9ve5z6mtz
parent: v.ladeuil+lp at free.fr-20110412112107-8b1m8nlhjjep7xet
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: config-concrete-stores
timestamp: Tue 2011-04-12 13:36:00 +0200
message:
Smoke tests are covered now and get_ConfigObjStore is not needed anymore.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_config.py'
--- a/bzrlib/tests/test_config.py 2011-04-12 11:21:07 +0000
+++ b/bzrlib/tests/test_config.py 2011-04-12 11:36:00 +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 TestConfigGetOptions(tests.TestCaseWithTransport, TestOptionsMixin):
def setUp(self):
More information about the bazaar-commits
mailing list