From 9257cfa4e7e0d05414b22bbdf6a757b80ac9829e Mon Sep 17 00:00:00 2001 From: JulienPeloton Date: Tue, 28 Nov 2023 16:42:13 +0100 Subject: [PATCH] Expand unit tests --- bin/association_cli.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/association_cli.py b/bin/association_cli.py index 16026ae3..1fe92b0e 100644 --- a/bin/association_cli.py +++ b/bin/association_cli.py @@ -201,6 +201,10 @@ def get_last_sso_alert_from_file(filepath, verbose=False): Examples -------- + >>> data_path = "fink_fat/data/sample_euclid.txt" + >>> pdf = get_last_sso_alert_from_file(data_path) + >>> assert len(pdf) == 2798 + >>> assert 'objectId' in pdf.columns """ pdf = pd.read_csv(filepath, header=0, sep=r'\s+', index_col=False)