from utils import util YEAR = util.get_year() MONTH = util.get_month() TODAY = util.get_today() TODAY_LINE = util.get_today_line() QUARTER = 2 DATE = '2017-09-29'
import os import sys import yaml from service import bank_loan_call_rate_service as blservice from service import base_service from service import classfication_service from service import investment_ref_service as irservice from service import transaction_service from service import macro_service from service import table_service from service import winners_list_service as wlservice from utils import util logger = logging.getLogger(__name__) today = util.get_today() today_line = util.get_today_line() yesterday = util.get_yesterday() yesterday_line = util.get_yesterday_line() tomorrow = util.get_tomorrow() tomorrow_line = util.get_tomorrow_line() QUARTERS = [1, 2, 3, 4] reload(sys) sys.setdefaultencoding('utf8') def setup_logging(default_path='resources/logging.yaml', default_level=logging.INFO, env_key='LOG_CFG'): """Setup logging configuration
def test_load_stocks_before_entering_date(): stocks = base_service.load_stocks_before_entering_date( '20170701', util.get_today_line()) print(stocks.count())