Skip to content

Commit

Permalink
improved tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Jan 13, 2015
2 parents 61414e2 + 5c79f1a commit fefe644
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 9 deletions.
11 changes: 11 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[run]
data_file = .coverage
source = jira

[report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
12 changes: 12 additions & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
If you are a contributor, and you are not listed here, feel free to add your name via a pull request.

Development Team (PyContribs)
`````````````````````````````
- Ben Speakmon <ben.speakmon@gmail.com> - Original Author
- Sorin Sbarnea <sorin.sbarnea@gmail.com> _ Current Maintainer

Patches and Suggestions
```````````````````````
- ... and many others.

Thank you!
12 changes: 6 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ JIRA Python Library
.. image:: https://pypip.in/wheel/jira/badge.svg?style=flat
:target: https://pypi.python.org/pypi/jira/

.. |br| raw:: html
------------

.. image:: https://api.travis-ci.org/pycontribs/jira.svg?branch=master
Expand All @@ -40,7 +39,7 @@ Quickstart

Feeling impatient? I like your style.

::
.. code-block:: python
from jira.client import JIRA
Expand All @@ -54,9 +53,11 @@ Feeling impatient? I like your style.
Installation
~~~~~~~~~~~~

Download and install using `pip install jira` or `easy_install jira`
Download and install using ``pip install jira`` or ``easy_install jira``

You can also try `pip install --user --upgrade jira` which will install or upgrade jira to user directory. Or maybe you ARE using a [virtualenv][2], right?
You can also try ``pip install --user --upgrade jira`` which will install or
upgrade jira to your user directory. Or maybe you ARE using a virtualenv_
right?

Usage
~~~~~
Expand All @@ -73,8 +74,7 @@ In additions to all the contributors we would like to thank to these companies:
* Travis_ for hosting our continous integration
* Navicat_ for providing us free licenses of their powerful database client GUI tools.

[1]: http://docs.python-requests.org/
[2]: http://www.virtualenv.org/en/latest/index.html
.. _virtualenv: http://www.virtualenv.org/en/latest/index.html

.. image:: https://www.atlassian.com/dms/wac/images/press/Atlassian-logos/logoAtlassianPNG.png
:width: 100px
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def initialize_options(self):
try:
import coveralls
self.pytest_args.append("--cov=%s" % NAME)
self.pytest_args.extend(["--cov-report","xml"])
self.pytest_args.extend(["--cov-report", "xml"])

except ImportError:
pass

Expand Down
3 changes: 2 additions & 1 deletion tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ def test_attachment(self):
attachment = self.jira.add_attachment(issue, open(TEST_ATTACH_PATH),
"new test attachment")
new_attachment = self.jira.attachment(attachment.id, msg=attachment)
self.assertEqual(new_attachment.filename, 'new test attachment', msg=msg)
self.assertEqual(
new_attachment.filename, 'new test attachment', msg=msg)
self.assertEqual(
new_attachment.size, os.path.getsize(TEST_ATTACH_PATH), msg=msg)
attachment.delete()
Expand Down

0 comments on commit fefe644

Please sign in to comment.