From f2ad047966e227a7d12c2d6381c7af7b64415611 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Wed, 8 Apr 2015 00:33:31 +0200 Subject: fix tests --- test/test_examples.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/test_examples.py') diff --git a/test/test_examples.py b/test/test_examples.py index e63f1c7a..daf4b902 100644 --- a/test/test_examples.py +++ b/test/test_examples.py @@ -15,6 +15,8 @@ def test_load_scripts(): f += " -" if "iframe_injector" in f: f += " foo" # one argument required + if "filt" in f: + f += " ~a" if "modify_response_body" in f: f += " foo bar" # two arguments required try: -- cgit v1.2.3 From c0a318566ae0fb5a264bfaa130f3ff3a09ea5bf5 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 12 Apr 2015 03:47:58 +0200 Subject: add flowwriter example --- test/test_examples.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_examples.py') diff --git a/test/test_examples.py b/test/test_examples.py index daf4b902..fd901b5d 100644 --- a/test/test_examples.py +++ b/test/test_examples.py @@ -11,7 +11,7 @@ def test_load_scripts(): tmaster = tservers.TestMaster(config.ProxyConfig()) for f in scripts: - if "har_extractor" in f: + if "har_extractor" in f or "flowwriter" in f: f += " -" if "iframe_injector" in f: f += " foo" # one argument required -- cgit v1.2.3 From a05a70d8168a07c92b2a3ecbbb1958d85532efe3 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 30 May 2015 12:03:28 +1200 Subject: Add coding style check, reformat. --- test/test_examples.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_examples.py') diff --git a/test/test_examples.py b/test/test_examples.py index fd901b5d..e9bccd2e 100644 --- a/test/test_examples.py +++ b/test/test_examples.py @@ -21,7 +21,7 @@ def test_load_scripts(): f += " foo bar" # two arguments required try: s = script.Script(f, tmaster) # Loads the script file. - except Exception, v: + except Exception as v: if not "ImportError" in str(v): raise else: -- cgit v1.2.3