Bug 1457054 - [wdspec] Align formatting of custom delete cookie command. r=automatedtester
authorHenrik Skupin <mail@hskupin.info>
Thu, 26 Apr 2018 11:08:05 +0200
changeset 416070 2e0af0221a8ea76a9445c51e9f86b025766e7721
parent 416069 149859d8a23d280e1e8b62ce9747dbbf71e18a85
child 416071 e122d6c67217d707a4c2d19119204816ca7a0710
push id33916
push userapavel@mozilla.com
push dateSat, 28 Apr 2018 17:29:16 +0000
treeherdermozilla-central@807e94988d9a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersautomatedtester
bugs1457054
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1457054 - [wdspec] Align formatting of custom delete cookie command. r=automatedtester MozReview-Commit-ID: KPePHYHT0CP
testing/web-platform/tests/webdriver/tests/cookies/delete_cookie.py
--- a/testing/web-platform/tests/webdriver/tests/cookies/delete_cookie.py
+++ b/testing/web-platform/tests/webdriver/tests/cookies/delete_cookie.py
@@ -1,15 +1,18 @@
 from tests.support.asserts import assert_dialog_handled, assert_error, assert_success
 from tests.support.fixtures import create_dialog
 from tests.support.inline import inline
 
 
 def delete_cookie(session, name):
-    return session.transport.send("DELETE", "/session/%s/cookie/%s" % (session.session_id, name))
+    return session.transport.send(
+        "DELETE", "/session/{session_id}/cookie/{name}".format(
+            session_id=session.session_id,
+            name=name))
 
 
 def test_no_browsing_context(session, create_window):
     session.window_handle = create_window()
     session.close()
 
     response = delete_cookie(session, "foo")
     assert_error(response, "no such window")