Skip to content
This repository was archived by the owner on Mar 9, 2024. It is now read-only.

continuous integration goodies #26

Merged
merged 4 commits into from
Jun 12, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# http://editorconfig.org

root = true

[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
charset = utf-8
max_line_length = 120

[*.yml]
indent_size = 2
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: python
python:
- "2.7"
- "3.6"
- "nightly"

matrix:
allow_failures:
python: "nightly"

cache: pip
before_install:
- pip install -r test_requirements.txt
install:
- pip install -e . # install dependencies as specified in setup.py
script:
- pytest
after_success:
- coveralls
11 changes: 11 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
Python Monero module
====================

|travis|_ |coveralls|_


.. |travis| image:: https://travis-ci.org/emesik/monero-python.svg
.. _travis: https://travis-ci.org/emesik/monero-python


.. |coveralls| image:: https://coveralls.io/repos/github/emesik/monero-python/badge.svg
.. _coveralls: https://coveralls.io/github/emesik/monero-python


A comprehensive Python module for handling Monero cryptocurrency.

* release 0.3
Expand Down
6 changes: 6 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[aliases]
test=pytest

[tool:pytest]
rootdir=tests
addopts=--cov=monero
5 changes: 5 additions & 0 deletions test_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
coverage~=4.5.1
pytest~=3.6
pytest-cov~=2.5
pip>=9
coveralls
3 changes: 3 additions & 0 deletions tests/test_address.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

from monero.address import Address, SubAddress, IntegratedAddress, address


class Tests(object):
__test__ = False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so pytest will run all test_* methods assuming they are, well, tests.
This is of course a problem for test classes mixins. But then again, you are right in worrying about it as I clearly forgot to reenable it on subclasses.
Fixed in next commit.


def test_from_and_to_string(self):
a = Address(self.addr)
self.assertEqual(str(a), self.addr)
Expand Down