Avoided requiring sqlparse for a test.

Refs #23426. Thanks Markus Holtermann for the suggestion.