diff --git a/fastpath/fastpath/tests/test_functional.py b/fastpath/fastpath/tests/test_functional.py index f1b17c46..d34b406a 100644 --- a/fastpath/fastpath/tests/test_functional.py +++ b/fastpath/fastpath/tests/test_functional.py @@ -1148,12 +1148,12 @@ def test_score_http_invalid_request_line(): def test_score_signal(): - for can_fn, msm in minicans("signal", date(2021, 4, 27), date(2021, 4, 27), 1): + for can_fn, msm in minicans("signal", date(2022, 10, 27), date(2022, 10, 27), 1): assert msm["test_name"] == "signal" scores = fp.score_measurement(msm) assert scores rid = msm["report_id"] - if rid == "20210427T000430Z_signal_AU_45671_n1_Zq1z77FuiG2IkqqC": + if rid == "20221027T000314Z_signal_AM_44395_n1_2Tjx8RckKKKGB5Fv": # Failed due to https://github.com/ooni/probe/issues/2627 assert scores == { "accuracy": 0.0, diff --git a/fastpath/fastpath/tests/test_unit.py b/fastpath/fastpath/tests/test_unit.py index bf715942..58c78130 100644 --- a/fastpath/fastpath/tests/test_unit.py +++ b/fastpath/fastpath/tests/test_unit.py @@ -574,7 +574,7 @@ def test_score_http_requests(): def test_score_signal_2627(): # https://explorer.ooni.org/measurement/20221118T104419Z_signal_IT_30722_n1_Q02UUAiiHlVU0VE6 # Failed due to https://github.com/ooni/probe/issues/2627 - msm = loadj("signal_022") + msm = loadj("signal_2627") scores = fp.score_measurement(msm) assert scores == { "accuracy": 0.0, @@ -585,6 +585,16 @@ def test_score_signal_2627(): "blocking_local": 0.0, } + msm = loadj("signal_022") + scores = fp.score_measurement(msm) + assert scores == { + "blocking_country": 0.0, + "blocking_general": 0.0, + "blocking_global": 0.0, + "blocking_isp": 0.0, + "blocking_local": 0.0, + } + def test_score_signal_679(): # https://explorer.ooni.org/m/20230530180835.892478_US_signal_b091ac0f3794bbcd