Ejemplo n.º 1
0
    def test_ark_orders_view(
        self,
        mock_add_order_total,
        mock_get_ark_orders,
        return_get_ark_orders,
        return_add_order_total,
    ):
        mock_get_ark_orders.return_value = pd.read_csv(
            StringIO(return_get_ark_orders),
            header=0,
            index_col=0,
            parse_dates=["date"])
        mock_add_order_total.return_value = pd.read_csv(
            StringIO(return_add_order_total),
            header=0,
            index_col=0,
            parse_dates=["date"],
        )

        ark_orders_view(["-n", "10"])
Ejemplo n.º 2
0
 def call_ark_orders(self, other_args: List[str]):
     """Process ark_orders command"""
     ark_view.ark_orders_view(other_args)