aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2014-07-17 19:54:32 -0400
committerDevan Franchini <twitch153@gentoo.org>2014-08-10 21:15:57 -0400
commite47236685c08855af08df5777d4a3f90f02aaf78 (patch)
tree323f67d389776b067855a512943b4f47b9494ba8 /layman/config.py
parentexternal.py: Adds FetchRemoteList() test to test suite (diff)
downloadlayman-e47236685c08855af08df5777d4a3f90f02aaf78.tar.gz
layman-e47236685c08855af08df5777d4a3f90f02aaf78.tar.bz2
layman-e47236685c08855af08df5777d4a3f90f02aaf78.zip
external.py: Adds CreateConfig() test to test suite
config.py: Removes doctests.
Diffstat (limited to 'layman/config.py')
-rw-r--r--layman/config.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/layman/config.py b/layman/config.py
index 29ed277..7c16745 100644
--- a/layman/config.py
+++ b/layman/config.py
@@ -82,14 +82,6 @@ class BareConfig(object):
):
'''
Creates a bare config with defaults and a few output options.
-
- >>> a = BareConfig()
- >>> a['overlays']
- 'https://api.gentoo.org/overlays/repositories.xml'
- >>> sorted(a.keys())
- ['bzr_addopts', 'bzr_command', 'bzr_postsync', 'bzr_syncopts', 'cache', 'config', 'configdir', 'custom_news_func', 'custom_news_pkg', 'cvs_addopts', 'cvs_command', 'cvs_postsync', 'cvs_syncopts', 'darcs_addopts', 'darcs_command', 'darcs_postsync', 'darcs_syncopts', 'g-common_command', 'g-common_generateopts', 'g-common_postsync', 'g-common_syncopts', 'git_addopts', 'git_command', 'git_email', 'git_postsync', 'git_syncopts', 'git_user', 'installed', 'local_list', 'make_conf', 'mercurial_addopts', 'mercurial_command', 'mercurial_postsync', 'mercurial_syncopts', 'news_reporter', 'nocheck', 'nocolor', 'output', 'overlay_defs', 'overlays', 'proxy', 'quiet', 'quietness', 'rsync_command', 'rsync_postsync', 'rsync_syncopts', 'stderr', 'stdin', 'stdout', 'storage', 'svn_addopts', 'svn_command', 'svn_postsync', 'svn_syncopts', 't/f_options', 'tar_command', 'tar_postsync', 'umask', 'verbose', 'width']
- >>> a.get_option('nocheck')
- True
'''
if root is None:
@@ -311,16 +303,6 @@ class OptionConfig(BareConfig):
"""
@param options: dictionary of {'option': value, ...}
@rtype OptionConfig class instance.
-
- >>> options = {"overlays": ["http://www.gentoo-overlays.org/repositories.xml"]}
- >>> new_defaults = {"configdir": "/etc/test-dir"}
- >>> a = OptionConfig(options=options, defaults=new_defaults)
- >>> a['overlays']
- 'http://www.gentoo-overlays.org/repositories.xml'
- >>> a["configdir"]
- '/etc/test-dir'
- >>> sorted(a.keys())
- ['bzr_addopts', 'bzr_command', 'bzr_postsync', 'bzr_syncopts', 'cache', 'config', 'configdir', 'custom_news_func', 'custom_news_pkg', 'cvs_addopts', 'cvs_command', 'cvs_postsync', 'cvs_syncopts', 'darcs_addopts', 'darcs_command', 'darcs_postsync', 'darcs_syncopts', 'g-common_command', 'g-common_generateopts', 'g-common_postsync', 'g-common_syncopts', 'git_addopts', 'git_command', 'git_email', 'git_postsync', 'git_syncopts', 'git_user', 'installed', 'local_list', 'make_conf', 'mercurial_addopts', 'mercurial_command', 'mercurial_postsync', 'mercurial_syncopts', 'news_reporter', 'nocheck', 'nocolor', 'output', 'overlay_defs', 'overlays', 'proxy', 'quiet', 'quietness', 'rsync_command', 'rsync_postsync', 'rsync_syncopts', 'stderr', 'stdin', 'stdout', 'storage', 'svn_addopts', 'svn_command', 'svn_postsync', 'svn_syncopts', 't/f_options', 'tar_command', 'tar_postsync', 'umask', 'verbose', 'width']
"""
BareConfig.__init__(self, root=root)