aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-11-20 14:29:01 -0500
committerW. Trevor King <wking@drexel.edu>2009-11-20 14:29:01 -0500
commitb35dfdf10b2f58a0632d0a0542bd8232a39b0391 (patch)
tree3e331c64841832a0c15683890aee46a58581def4 /becommands
parent19b3a1d77946b4bbec0788d1ac3270c5cddbd54a (diff)
downloadbugseverywhere-b35dfdf10b2f58a0632d0a0542bd8232a39b0391.tar.gz
Adjusted test.py to use an installed vcs by default.
Protects agaist the off chance that the user doesn't have Arch (tla) installed ;). Changed Arch.name from "Arch" to "arch" so that each VCSs .name matches the module name. This allows us to use vcs.VCS_ORDER (a list of module names) to set up the allowed values of BugDir.vcs_name.
Diffstat (limited to 'becommands')
-rw-r--r--becommands/init.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/becommands/init.py b/becommands/init.py
index 275dd77..75db0ac 100644
--- a/becommands/init.py
+++ b/becommands/init.py
@@ -37,14 +37,13 @@ def execute(args, manipulate_encodings=True):
>>> dir = utility.Dir()
>>> os.chdir(dir.path)
- >>> vcs = vcs.installed_vcs()
- >>> vcs.init('.')
- >>> print vcs.name
- Arch
- >>> execute([], manipulate_encodings=False)
- Using Arch for revision control.
+ >>> _vcs = vcs.installed_vcs()
+ >>> _vcs.init('.')
+ >>> _vcs.name in vcs.VCS_ORDER
+ >>> execute([], manipulate_encodings=False) # doctest: +ELLIPSIS
+ Using ... for revision control.
Directory initialized.
- >>> vcs.cleanup()
+ >>> _vcs.cleanup()
>>> try:
... execute(['--root', '.'], manipulate_encodings=False)