def test_clean_datetimes_return_df(): pts = leiap.get_points_simple() df = leiap.clean_datetimes(pts) assert isinstance(df, pd.DataFrame)
def test_clean_datetimes_columns(): """Must have 'dt_adj' column""" pts = leiap.get_points_simple() cols = leiap.clean_datetimes(pts).columns.tolist() assert 'dt_adj' in cols
def test_load_points_simple_length(): """Row length should be greater than 0""" df = leiap.get_points_simple() assert df.shape[0] > 0
def test_clean_datetimes_length(): """Row length should be greater than 0""" pts = leiap.get_points_simple() df = leiap.clean_datetimes(pts) assert df.shape[0] > 0
def test_load_points_simple_return_df(): df = leiap.get_points_simple() assert isinstance(df, pd.DataFrame)