Skip to content

test(queries): pin escape_doublequote actually escapes quotes - #123

Open
TimeToBuildBob wants to merge 1 commit into
ActivityWatch:masterfrom
TimeToBuildBob:test/escape-doublequote-regression
Open

TimeToBuildBob wants to merge 1 commit into
ActivityWatch:masterfrom
TimeToBuildBob:test/escape-doublequote-regression

Conversation

@TimeToBuildBob

Copy link
Copy Markdown
Contributor

#109 fixed escape_doublequote, which used a JavaScript-style regex (re.sub('/"/g', ...)) and never matched anything. That fix landed without a test.

This adds tests/test_queries.py. It fails against the old implementation and passes on master.

Context: ActivityWatch/aw-server-rust#734

@greptile-apps

greptile-apps Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Low risk] Adds a test for an existing query utility function.

The PR appears safe to merge.

Findings

  1. P2 Regression test omitted from CI ▶

Summary

The PR adds a regression test for double-quote escaping and includes it in the make test target. The previous finding about CI omitting the test is fully fixed.

Reviews (2) · Last reviewed commit: "fix(tests): include test_queries.py in m..."

Comment thread tests/test_queries.py
@TimeToBuildBob

Copy link
Copy Markdown
Contributor Author

@greptileai review

Regression test for the JS-style regex bug fixed in ActivityWatch#109, which shipped
without a test.

Git-Session-Id: 3d60
@TimeToBuildBob
TimeToBuildBob force-pushed the test/escape-doublequote-regression branch from 319711e to 88956d6 Compare September 26, 2026 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant