test_ok2/testing
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
..
python SO-17664702: call fixture finalizers even if the fixture function 2013-07-17 10:29:11 +02:00
acceptance_test.py - add release announce 2013-03-28 10:21:03 +01:00
conftest.py fix --genscript option to generate standalone scripts that also 2013-02-12 22:59:29 +01:00
test_assertinterpret.py fix a import strange loop that affects pypy test appsupport on python2.5 2012-04-13 12:41:02 +02:00
test_assertion.py fix recursion within import hook and source.decode in particular 2013-04-30 12:05:58 +02:00
test_assertrewrite.py reindent a few of the blockquotes in these tests 2013-06-07 17:30:10 -04:00
test_capture.py add a test for issue 14 that will xfail on python < 2.7 2013-03-25 08:53:08 +01:00
test_collection.py refine lsof/FD leakage testing and rework test setup and some of pytest own tests. Note that the actual diff to non-test code is small. Also remove some redundant tests (introduced by a copy-paste-error apparently in test_mark.py). 2011-11-07 18:08:41 +00:00
test_config.py don't run long-args test on windows because it can't work 2012-11-20 11:52:06 +01:00
test_conftest.py remove unnecessary print 2013-07-06 10:26:14 +02:00
test_core.py improve PYTEST_DEBUG tracing output 2012-11-29 10:04:39 +01:00
test_doctest.py zero to many doctests from module instead of one 2013-05-17 12:18:22 -03:00
test_fixture_scope.py re #320 fallback to test scope if the class-scoped fixture is used in non-class-based test function 2013-07-06 21:30:24 +02:00
test_genscript.py py3 fixes 2013-02-04 16:07:51 +01:00
test_helpconfig.py fix test after ronny's pytest-debug improvements 2012-12-04 20:31:37 +01:00
test_junitxml.py Implemented a test for xml control character fail. 2013-05-09 21:16:57 +02:00
test_mark.py moving from optparse to argparse. Major difficulty is 2013-07-25 15:33:43 +02:00
test_monkeypatch.py fixes issue 156: monkeypatch class level descriptors 2012-09-25 18:15:13 +02:00
test_nose.py slightly improve -k help string 2013-04-16 09:04:05 +02:00
test_parseopt.py moving from optparse to argparse. Major difficulty is 2013-07-25 15:33:43 +02:00
test_pastebin.py test and fix pastebin xmlrpc import name missmatch, fixes #87 2011-11-14 17:51:12 +01:00
test_pdb.py fix bug where using capsys with pytest.set_trace() in a test 2012-11-21 20:43:31 +01:00
test_pytester.py fix issue 182: testdir.inprocess_run now considers passed plugins 2012-09-03 10:12:30 +02:00
test_recwarn.py streamline docs, especially use "import pytest" and "pytest.*" in python code examples instead of "import py" and "py.test.*". 2010-11-17 22:12:16 +01:00
test_resultlog.py fix issue99 - internalerror with --resultlog now produce better output. 2011-12-10 08:49:21 +00:00
test_runner.py py3 fixes 2013-02-04 16:07:51 +01:00
test_runner_xunit.py make test name shorter, so its testdir path isn't too long on windows 2011-07-07 09:43:39 -05:00
test_session.py make sessionfinish hooks execute with the same cwd-context as at 2013-06-10 10:09:28 +02:00
test_skipping.py fixes for py25 in test_skipping 2013-07-11 11:15:31 +02:00
test_terminal.py merge 2013-07-06 15:54:33 +02:00
test_tmpdir.py allow re-running of a test item (as exercised by the 2013-04-22 10:35:48 +02:00
test_unittest.py change how the test is called 2013-06-22 09:42:31 -07:00