Skip to content
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
whtsky committed May 25, 2013
1 parent 5d7830b commit fdbec16
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 283 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include README.rst LICENSE
include LICENSE
2 changes: 1 addition & 1 deletion parguments/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def run(self, command=None, argv=None, help=True, exit=True):
if command is None and len(sys.argv) > 1:
cmd = argv[0]
else:
cmd = args.get(command, "")
cmd = args.get(command, None)

if cmd in self._commands:
cmd = self._commands[cmd]
Expand Down
280 changes: 0 additions & 280 deletions test.py

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,15 @@ def remove(name):
assert 'remove' in p._commands

p.run(argv=["add", "catsup"], exit=False)
p.run(command="add", argv=["remove", "catsup"], exit=False)

import sys
sys.argv[1:] = ["add", "catsup"]

p.run(exit=False)

try:
p.run(argv=["remove", "wordpress"])
p.run(command="add", argv=["remove catsup"])
except SystemExit:
pass
else:
Expand Down

0 comments on commit fdbec16

Please sign in to comment.