Skip to content
Snippets Groups Projects
Commit f71f9fa9 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fixed unit tests

parent 5c5b0b67
No related branches found
No related tags found
No related merge requests found
......@@ -6,11 +6,15 @@ python:
- "3.8"
- "nightly"
- "pypy3"
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
install:
- pip install -r requirements.txt
- pip install --force-reinstall "coverage>=4.0,<4.4" codeclimate-test-reporter
- pip install -r requirements.txt
- pip install nose2 mock coverage
script:
- python setup.py test
- python setup.py sdist bdist bdist_wheel
- bash tests/test_posix/test_hang_until_sig.sh
- coverage run -m nose2
after_success:
- codeclimate-test-reporter
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
......@@ -10,6 +10,7 @@ Welcome to firanka's documentation!
:maxdepth: 2
:caption: Contents:
series
Indices and tables
......
import inspect
from sortedcontainers import SortedList
......@@ -13,7 +11,7 @@ def _has_arguments(fun, n): # used only in assert clauses
return len(inspect.getargspec(fun).args) >= n
class Series(object):
class Series:
"""
Abstract, base class for series.
......@@ -44,6 +42,7 @@ class Series(object):
self.domain.contains_or_fail(item)
return self._get_for(item)
@abstractmethod
def _get_for(self, item):
raise NotImplementedError(u'This is abstract, override me!')
......
[coverage]
always-on = True
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment