diff options
author | Kui Shi <skuicloud@gmail.com> | 2013-10-19 15:46:20 +0800 |
---|---|---|
committer | Kui Shi <skuicloud@gmail.com> | 2013-10-23 06:53:45 +0800 |
commit | 31a6cde05289894579fad328ed104bb5bedb46c9 (patch) | |
tree | 78c6dc3fde44a0a3875c91839a1f1918c7704d4a /test-requirements.txt | |
parent | 5af5d6f30dab4fd707ed589e33c16a8965d94031 (diff) | |
download | python-troveclient-31a6cde05289894579fad328ed104bb5bedb46c9.tar.gz |
Include troveclient/compat/tests in testr
All tests should be included in testr.
In test_common.py, the testr command line will be read for parsing,
finally emit error message:
run.py: error: no such option: -t
we should mock the sys.argv in setUp().
The analysis is here
--------------------
troveclient/compat/common.py: CommandsBase
254 def _parse_options(self, parser):
255 opts, args = parser.parse_args() <-- 1. no arg is passed
/usr/lib/python2.7/optparse.py
1361 def _get_args(self, args):
1362 if args is None:
1363 return sys.argv[1:] <-- 3. cmdline(testr command) is read
1364 else:
1365 return args[:]
1367 def parse_args(self, args=None, values=None):
...
1381 rargs = self._get_args(args) <-- 2. args is None
Close-Bug #1241845
Change-Id: I092db96d1b6bb31c41e6ba4c5fc9606e3f8ac087
Diffstat (limited to 'test-requirements.txt')
-rw-r--r-- | test-requirements.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test-requirements.txt b/test-requirements.txt index a944dd1..89bf1fe 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -4,3 +4,5 @@ sphinx>=1.1.2 testrepository>=0.0.17 testtools>=0.9.32 mock>=1.0 +httplib2 +lxml>=2.3 |