Exemplo n.º 1
0
    def test_display_fred(self, mock_get_series):
        fred_data = pd.read_csv(StringIO(fred_data_mock), header=0, index_col=0)

        mock_get_series.return_value = fred_data

        display_fred(["-t"], "gdp")
 def call_aaa(self, other_args: List[str]):
     """Process aaa command"""
     fred_view.display_fred(other_args, "AAA")
 def call_dexcaus(self, other_args: List[str]):
     """Process dexcaus command"""
     fred_view.display_fred(other_args, "DEXCAUS")
 def call_mortgage30us(self, other_args: List[str]):
     """Process mortgage30us command"""
     fred_view.display_fred(other_args, "MORTGAGE30US")
 def call_fedfunds(self, other_args: List[str]):
     """Process fedfunds command"""
     fred_view.display_fred(other_args, "FEDFUNDS")
 def call_dgs30(self, other_args: List[str]):
     """Process dgs30 command"""
     fred_view.display_fred(other_args, "DGS30")
 def call_unrate(self, other_args: List[str]):
     """Process unrate command"""
     fred_view.display_fred(other_args, "UNRATE")
 def call_gdp(self, other_args: List[str]):
     """Process gdp command"""
     fred_view.display_fred(other_args, "GDP")
 def call_vixcls(self, other_args: List[str]):
     """Process vixcls command"""
     fred_view.display_fred(other_args, "VIXCLS")
 def call_fred(self, other_args: List[str]):
     """Process fred command"""
     fred_view.display_fred(other_args, "")