test_ok2/_pytest
Anthon van der Neut 15ec5a898c moving from optparse to argparse. Major difficulty is
that argparse does not have Option objects -> added class Argument
Needed explicit call of MyOptionParser.format_epilog as argparse
does not have that. The parse_arg epilog argument wraps the text,
which is not the same (could be handled with a special formatter).

- parser.parse() now returns single argument (with positional args in
  .file_or_dir)
- "file_or_dir" made a class variable Config._file_or_dir and used in help and tests
- added code for argcomplete (because of which this all started!)

addoption:
- if option type is a string ('int' or 'string', this converted to
  int resp. str
- if option type is 'count' this is changed to the type of choices[0]

testing:
- added tests for Argument
- test_mark.test_keyword_extra split as ['-k', '-mykeyword'] generates argparse
  error test split in two and one marked as fail
- testing hints, multiline and more strickt (for if someone moves format_epilog
  to epilog argument of parse_args without Formatter)
- test for destination derived from long option with internal dash
- renamed second test_parseopt.test_parse() to test_parse2 as it was
  not tested at all (the first was tested.)

--HG--
branch : argparse
2013-07-25 15:33:43 +02:00
..
assertion Always check for both ENOENT and ENOTDIR 2013-07-06 18:53:26 +02:00
__init__.py bump version 2013-07-24 11:16:19 +02:00
capture.py moving from optparse to argparse. Major difficulty is 2013-07-25 15:33:43 +02:00
config.py moving from optparse to argparse. Major difficulty is 2013-07-25 15:33:43 +02:00
core.py py3 fixes 2013-02-04 16:07:51 +01:00
doctest.py zero to many doctests from module instead of one 2013-05-17 12:18:22 -03:00
genscript.py don't import stuff at genscript import time but rather when it is used 2011-03-12 20:12:19 +01:00
helpconfig.py moving from optparse to argparse. Major difficulty is 2013-07-25 15:33:43 +02:00
hookspec.py moving from optparse to argparse. Major difficulty is 2013-07-25 15:33:43 +02:00
impl - enhance ordering of tests using parametrized resources 2012-08-01 09:07:32 +02:00
junitxml.py Fix junitxml generation when using special characters in parametrized tests. 2013-05-08 15:15:43 +02:00
main.py moving from optparse to argparse. Major difficulty is 2013-07-25 15:33:43 +02:00
mark.py use __dict__ not func_dict for Python 3 compatibility 2013-05-27 14:04:53 -07:00
monkeypatch.py fixes issue 156: monkeypatch class level descriptors 2012-09-25 18:15:13 +02:00
nose.py fix Issue 265 - integrate nose setup/teardown with setupstate 2013-03-25 10:52:02 +01:00
pastebin.py moving from optparse to argparse. Major difficulty is 2013-07-25 15:33:43 +02:00
pdb.py pdb plugin: move entering pdb into a toplevel function 2013-04-18 11:18:24 +02:00
pytester.py strip old comment and hack 2013-02-03 20:47:39 +01:00
python.py SO-17664702: call fixture finalizers even if the fixture function 2013-07-17 10:29:11 +02:00
recwarn.py incorporate typo/grammar fixes from Laura and respond to a number of issues she raised in comments. 2011-03-03 23:40:38 +01:00
resultlog.py mid-scale refactoring to make request API available directly on items. 2012-06-25 17:35:33 +02:00
runner.py moving from optparse to argparse. Major difficulty is 2013-07-25 15:33:43 +02:00
skipping.py support boolean condition expressions in skipif/xfail 2013-05-07 18:40:26 +02:00
standalonetemplate.py fix --genscript option to generate standalone scripts that also 2013-02-12 22:59:29 +01:00
terminal.py moving from optparse to argparse. Major difficulty is 2013-07-25 15:33:43 +02:00
tmpdir.py modernize tmpdir fixture (use request.node in tmpdir fixture, use @pytest.fixture) 2012-11-19 14:07:14 +01:00
unittest.py fix issue148 - recognize @unittest.skip on classes, avoid setup/teardown 2012-11-03 20:54:48 +01:00