Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
firanka
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
firanka
Commits
f71f9fa9
Commit
f71f9fa9
authored
5 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
fixed unit tests
parent
5c5b0b67
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.travis.yml
+9
-5
9 additions, 5 deletions
.travis.yml
docs/index.rst
+1
-0
1 addition, 0 deletions
docs/index.rst
docs/series.rst
+0
-0
0 additions, 0 deletions
docs/series.rst
firanka/series/base.py
+2
-3
2 additions, 3 deletions
firanka/series/base.py
unittest.cfg
+0
-2
0 additions, 2 deletions
unittest.cfg
with
12 additions
and
10 deletions
.travis.yml
+
9
−
5
View file @
f71f9fa9
...
...
@@ -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
This diff is collapsed.
Click to expand it.
docs/index.rst
+
1
−
0
View file @
f71f9fa9
...
...
@@ -10,6 +10,7 @@ Welcome to firanka's documentation!
:maxdepth: 2
:caption: Contents:
series
Indices and tables
...
...
This diff is collapsed.
Click to expand it.
docs/series.rst
0 → 100644
+
0
−
0
View file @
f71f9fa9
This diff is collapsed.
Click to expand it.
firanka/series/base.py
+
2
−
3
View file @
f71f9fa9
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!
'
)
...
...
This diff is collapsed.
Click to expand it.
unittest.cfg
deleted
100644 → 0
+
0
−
2
View file @
5c5b0b67
[coverage]
always-on
= True
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment