Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions tests/test_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,3 +401,15 @@ def test_browser_bucket_not_matched_by_hostname():
assert dict(browsersWithBuckets(buckets[2:])) == {
"firefox": "aw-watcher-web-firefox-synced-from-chrome-box"
}


from aw_client.queries import escape_doublequote


def test_escape_doublequote():
Comment thread
TimeToBuildBob marked this conversation as resolved.
# Regression: this once used a JS-style regex ('/"/g') and never matched.
assert (
escape_doublequote('aw-watcher-window_"host"') == 'aw-watcher-window_\\"host\\"'
)
assert escape_doublequote("no quotes") == "no quotes"
assert escape_doublequote("") == ""
Loading