From eb1fcefd4955ab5264e54c10cb72aaff1440f46d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Sun, 6 Dec 2020 21:29:48 +0100 Subject: [PATCH] Use more correct terms --- run_tests.py | 16 ++++++++-------- tests/false-positives.csv | 2 +- tests/first-party.csv | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/run_tests.py b/run_tests.py index 548b6eb..9584cb8 100755 --- a/run_tests.py +++ b/run_tests.py @@ -21,14 +21,14 @@ if __name__ == '__main__': for test in reader: log.info("Testing %s (%s)", test['url'], test['comment']) - for white in test['white'].split(':'): - if not white: + for allow in test['allow'].split(':'): + if not allow: continue - if any(DB.get_domain(white)): - log.error("False positive: %s", white) + if any(DB.get_domain(allow)): + log.error("False positive: %s", allow) - for black in test['black'].split(':'): - if not black: + for deny in test['deny'].split(':'): + if not deny: continue - if not any(DB.get_domain(black)): - log.error("False negative: %s", black) + if not any(DB.get_domain(deny)): + log.error("False negative: %s", deny) diff --git a/tests/false-positives.csv b/tests/false-positives.csv index 6d8acf1..ae08ef8 100644 --- a/tests/false-positives.csv +++ b/tests/false-positives.csv @@ -1,4 +1,4 @@ -url,white,black,comment +url,allow,deny,comment https://support.apple.com,support.apple.com,,EdgeKey / AkamaiEdge https://www.pinterest.fr/,i.pinimg.com,,Cedexis https://www.tumblr.com/,66.media.tumblr.com,,ChiCDN diff --git a/tests/first-party.csv b/tests/first-party.csv index 020015c..e497837 100644 --- a/tests/first-party.csv +++ b/tests/first-party.csv @@ -1,4 +1,4 @@ -url,white,black,comment +url,allow,deny,comment https://www.red-by-sfr.fr/,static.s-sfr.fr,nrg.red-by-sfr.fr,Eulerian https://www.cbc.ca/,,smetrics.cbc.ca,2o7 | Ominuture | Adobe Experience Cloud https://www.discover.com/,,content.discover.com,ThreatMetrix