-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1)use zvdata 1.2.1 for better recorder class constructor 2)improve si…
…na block money flow recorder
- Loading branch information
Showing
4 changed files
with
27 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
zvdata == 1.2.0 | ||
zvdata == 1.2.1 | ||
requests == 2.20.1 | ||
SQLAlchemy == 1.2.14 | ||
pandas == 0.24.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 5 additions & 13 deletions
18
tests/recorders/eastmoney/test_dividend_financing_recorder.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,35 @@ | ||
# -*- coding: utf-8 -*- | ||
from zvt.domain import DividendDetail, RightsIssueDetail, SpoDetail, DividendFinancing | ||
from ...context import init_test_context | ||
|
||
init_test_context() | ||
|
||
from zvt.settings import SAMPLE_STOCK_CODES | ||
|
||
from zvt.recorders.eastmoney.dividend_financing.dividend_detail_recorder import DividendDetailRecorder | ||
from zvt.recorders.eastmoney.dividend_financing.dividend_financing_recorder import DividendFinancingRecorder | ||
from zvt.recorders.eastmoney.dividend_financing.rights_issue_detail_recorder import RightsIssueDetailRecorder | ||
from zvt.recorders.eastmoney.dividend_financing.spo_detail_recorder import SPODetailRecorder | ||
|
||
|
||
def test_dividend_detail(): | ||
recorder = DividendDetailRecorder(codes=SAMPLE_STOCK_CODES) | ||
try: | ||
recorder.run() | ||
DividendDetail.record_data(provider='eastmoney', codes=SAMPLE_STOCK_CODES) | ||
except: | ||
assert False | ||
|
||
|
||
def test_rights_issue_detail(): | ||
recorder = RightsIssueDetailRecorder(codes=SAMPLE_STOCK_CODES) | ||
try: | ||
recorder.run() | ||
RightsIssueDetail.record_data(provider='eastmoney', codes=SAMPLE_STOCK_CODES) | ||
except: | ||
assert False | ||
|
||
|
||
def test_spo_detail(): | ||
recorder = SPODetailRecorder(codes=SAMPLE_STOCK_CODES) | ||
try: | ||
recorder.run() | ||
SpoDetail.record_data(provider='eastmoney', codes=SAMPLE_STOCK_CODES) | ||
except: | ||
assert False | ||
|
||
|
||
def test_dividend_financing(): | ||
recorder = DividendFinancingRecorder(codes=SAMPLE_STOCK_CODES) | ||
try: | ||
recorder.run() | ||
DividendFinancing.record_data(provider='eastmoney', codes=SAMPLE_STOCK_CODES) | ||
except: | ||
assert False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters