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")
Exemple #2
0
 def call_aaa(self, other_args: List[str]):
     """Process aaa command"""
     fred_view.display_fred(other_args, "AAA")
Exemple #3
0
 def call_dexcaus(self, other_args: List[str]):
     """Process dexcaus command"""
     fred_view.display_fred(other_args, "DEXCAUS")
Exemple #4
0
 def call_mortgage30us(self, other_args: List[str]):
     """Process mortgage30us command"""
     fred_view.display_fred(other_args, "MORTGAGE30US")
Exemple #5
0
 def call_fedfunds(self, other_args: List[str]):
     """Process fedfunds command"""
     fred_view.display_fred(other_args, "FEDFUNDS")
Exemple #6
0
 def call_dgs30(self, other_args: List[str]):
     """Process dgs30 command"""
     fred_view.display_fred(other_args, "DGS30")
Exemple #7
0
 def call_unrate(self, other_args: List[str]):
     """Process unrate command"""
     fred_view.display_fred(other_args, "UNRATE")
Exemple #8
0
 def call_gdp(self, other_args: List[str]):
     """Process gdp command"""
     fred_view.display_fred(other_args, "GDP")
Exemple #9
0
 def call_vixcls(self, other_args: List[str]):
     """Process vixcls command"""
     fred_view.display_fred(other_args, "VIXCLS")
Exemple #10
0
 def call_fred(self, other_args: List[str]):
     """Process fred command"""
     fred_view.display_fred(other_args, "")