diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-12-13 15:06:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-13 15:06:14 +0100 |
commit | 727abdba44fa72321f51402b03e9d39c6489dc95 (patch) | |
tree | 23a6d50af83bffd0521cc3cc750423bdc95b2a8b /test | |
parent | e2c6d7ed0f6d4fb4375d8bb1f372a47f6d43b85b (diff) | |
parent | 44f94c884481c768991a4817bb4772d0c3e59bef (diff) | |
download | mitmproxy-727abdba44fa72321f51402b03e9d39c6489dc95.tar.gz mitmproxy-727abdba44fa72321f51402b03e9d39c6489dc95.tar.bz2 mitmproxy-727abdba44fa72321f51402b03e9d39c6489dc95.zip |
Merge pull request #1852 from mhils/simplenamespace
Use types.SimpleNamespace instead of custom NS class
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/addons/test_script.py | 7 | ||||
-rw-r--r-- | test/mitmproxy/test_examples.py | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/test/mitmproxy/addons/test_script.py b/test/mitmproxy/addons/test_script.py index 06463fa3..777f8f4d 100644 --- a/test/mitmproxy/addons/test_script.py +++ b/test/mitmproxy/addons/test_script.py @@ -18,13 +18,6 @@ import watchdog.events from .. import tutils as ttutils -def test_ns(): - n = script.NS({}) - n.one = "one" - assert n.one == "one" - assert n.__dict__["ns"]["one"] == "one" - - def test_scriptenv(): with taddons.context() as tctx: with script.scriptenv("path", []): diff --git a/test/mitmproxy/test_examples.py b/test/mitmproxy/test_examples.py index 8db2507f..610c9dad 100644 --- a/test/mitmproxy/test_examples.py +++ b/test/mitmproxy/test_examples.py @@ -150,7 +150,7 @@ class TestHARDump: def test_format_cookies(self): m, sc = tscript("complex/har_dump.py", "-") - format_cookies = sc.ns.ns["format_cookies"] + format_cookies = sc.ns.format_cookies CA = cookies.CookieAttrs |