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,直连正常
28 lines
560 B
Python
28 lines
560 B
Python
"""
|
|
Tests for behavior if an author does *not* implement EA methods.
|
|
"""
|
|
|
|
import numpy as np
|
|
import pytest
|
|
|
|
from pandas.core.arrays import ExtensionArray
|
|
|
|
|
|
class MyEA(ExtensionArray):
|
|
def __init__(self, values) -> None:
|
|
self._values = values
|
|
|
|
|
|
@pytest.fixture
|
|
def data():
|
|
arr = np.arange(10)
|
|
return MyEA(arr)
|
|
|
|
|
|
class TestExtensionArray:
|
|
def test_errors(self, data, all_arithmetic_operators):
|
|
# invalid ops
|
|
op_name = all_arithmetic_operators
|
|
with pytest.raises(AttributeError):
|
|
getattr(data, op_name)
|