fa45d8aa5f
- health_checklist.json: 192.168.1.122→node122
- ocr_client.py: docstring IP→node122
- docs/market-data-requirements.md: IP→node122
- 所有API调用通过ProxyHandler({})绕过系统代理
Privoxy对node122:18003返回500,直连正常
32 lines
713 B
Python
32 lines
713 B
Python
import textwrap
|
|
|
|
import pytest
|
|
|
|
from . import util
|
|
|
|
|
|
@pytest.mark.slow
|
|
class TestMixed(util.F2PyTest):
|
|
sources = [
|
|
util.getpath("tests", "src", "mixed", "foo.f"),
|
|
util.getpath("tests", "src", "mixed", "foo_fixed.f90"),
|
|
util.getpath("tests", "src", "mixed", "foo_free.f90"),
|
|
]
|
|
|
|
def test_all(self):
|
|
assert self.module.bar11() == 11
|
|
assert self.module.foo_fixed.bar12() == 12
|
|
assert self.module.foo_free.bar13() == 13
|
|
|
|
def test_docstring(self):
|
|
expected = textwrap.dedent("""\
|
|
a = bar11()
|
|
|
|
Wrapper for ``bar11``.
|
|
|
|
Returns
|
|
-------
|
|
a : int
|
|
""")
|
|
assert self.module.bar11.__doc__ == expected
|