incorporate tests in docs
authorAlexander Solovyov <alexander@solovyov.net>
Tue, 07 Dec 2010 12:30:56 +0100
changeset 151 6282c2c87394
parent 150 4415323f5777
child 152 2d47db2db0d6
incorporate tests in docs
docs/index.rst
docs/tests.rst
tests/opster.t
--- a/docs/index.rst	Tue Dec 07 12:30:27 2010 +0100
+++ b/docs/index.rst	Tue Dec 07 12:30:56 2010 +0100
@@ -2,19 +2,15 @@
  Opster
 =============
 
-.. toctree::
-   :maxdepth: 1
-
-   changelog
-   overview
-   api
-
 Opster is a command line parser, intended to make writing command line
 applications easy and painless. It uses built-in Python types (lists,
 dictionaries, etc) to define options, which makes configuration clear and
 concise. Additionally it contains possibility to handle subcommands (i.e.
 ``hg commit`` or ``svn update``).
 
+* Page on PyPI: http://pypi.python.org/pypi/opster
+* Repository: http://hg.piranha.org.ua/opster/
+
 Features
 --------
 
@@ -38,5 +34,12 @@
 
 Read more in :doc:`overview`.
 
+.. toctree::
+   :maxdepth: 1
+
+   changelog
+   overview
+   api
+   tests
 
 .. _single file: http://hg.piranha.org.ua/opster/file/tip/opster.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docs/tests.rst	Tue Dec 07 12:30:56 2010 +0100
@@ -0,0 +1,1 @@
+../tests/opster.t
\ No newline at end of file
--- a/tests/opster.t	Tue Dec 07 12:30:27 2010 +0100
+++ b/tests/opster.t	Tue Dec 07 12:30:56 2010 +0100
@@ -1,3 +1,9 @@
+.. -*- mode: rst -*-
+
+==============
+ Opster tests
+==============
+
 This is a test suite for opster library. Just read it to get some idea of how it
 works.
 
@@ -5,6 +11,7 @@
 
   $ function run() { name=$1; shift; python "$TESTDIR/$name" "$@"; }
 
+
 Check if usage is working::
 
   $ run multicommands.py
@@ -15,7 +22,6 @@
    simple  Just simple command to print keys of received arguments.
 
 
-
 Ok, then let's run it::
 
   $ run multicommands.py simple