Commit 4f23ad15 authored by hupantingxue's avatar hupantingxue

Add test run command;

parent 5211e8bd
...@@ -49,14 +49,22 @@ or from source: ...@@ -49,14 +49,22 @@ or from source:
$ sudo python setup.py install $ sudo python setup.py install
------------
Run Tests
------------
To run jpush-api-python-client tests, simply:
.. code-block:: sh
$ nosetests -w tests/ --verbosity=2
-------- --------
Examples Examples
-------- --------
Details refer to `examples <https://github.com/jpush/jpush-api-python-client/blob/master/examples>`_ You can see more examples in `examples <https://github.com/jpush/jpush-api-python-client/blob/master/examples>`_
Simple iOS Push Simple iOS Push
--------------- ---------------
See more push examples in `Push Examples <https://github.com/jpush/jpush-api-python-client/tree/master/examples/push>`
>>> import jpush as jpush >>> import jpush as jpush
>>> from conf import app_key, master_secret >>> from conf import app_key, master_secret
>>> _jpush = jpush.JPush(app_key, master_secret) >>> _jpush = jpush.JPush(app_key, master_secret)
...@@ -70,7 +78,6 @@ Simple iOS Push ...@@ -70,7 +78,6 @@ Simple iOS Push
Get taglist Get taglist
----------------- -----------------
See more devices api examples in `Push Examples <https://github.com/jpush/jpush-api-python-client/tree/master/examples/device>`
>>> import jpush as jpush >>> import jpush as jpush
>>> from conf import app_key, master_secret >>> from conf import app_key, master_secret
>>> _jpush = jpush.JPush(app_key, master_secret) >>> _jpush = jpush.JPush(app_key, master_secret)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment