mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-19 11:22:06 +08:00
MAINT: cleanup doctests
This commit is contained in:
@@ -10,10 +10,11 @@ from zipline.pipeline import (
|
||||
)
|
||||
from zipline.utils import (
|
||||
cache,
|
||||
input_validation,
|
||||
memoize,
|
||||
numpy_utils,
|
||||
preprocess,
|
||||
test_utils,
|
||||
numpy_utils,
|
||||
)
|
||||
|
||||
|
||||
@@ -69,6 +70,9 @@ class DoctestTestCase(TestCase):
|
||||
def test_preprocess_docs(self):
|
||||
self._check_docs(preprocess)
|
||||
|
||||
def test_input_validation_docs(self):
|
||||
self._check_docs(input_validation)
|
||||
|
||||
def test_cache_docs(self):
|
||||
self._check_docs(cache)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ cpdef _from_assets_and_dates(cls,
|
||||
... 3,
|
||||
... 0.5,
|
||||
... )
|
||||
Float64Multiply(first_row=2, last_row=4, first_col=3, last_col=3, value=0.500000) # noqa
|
||||
Float64Multiply(first_row=2, last_row=4, first_col=3, last_col=3, value=0.500000)
|
||||
"""
|
||||
cdef:
|
||||
Py_ssize_t first_row, last_row, col
|
||||
|
||||
@@ -151,7 +151,7 @@ def expect_element(*_pos, **named):
|
||||
>>> foo('c')
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
TypeError: foo() expected a value in ('a', 'b') for argument 'x', but got 'c' instead. # noqa
|
||||
ValueError: foo() expected a value in ('a', 'b') for argument 'x', but got 'c' instead. # noqa
|
||||
"""
|
||||
if _pos:
|
||||
raise TypeError("expect_element() only takes keyword arguments.")
|
||||
|
||||
Reference in New Issue
Block a user