Skip to content

Commit

Permalink
Add tests for utils.remove_quotes.
Browse files Browse the repository at this point in the history
  • Loading branch information
andialbrecht committed Aug 24, 2022
1 parent e269881 commit 4235eb8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import pytest

from sqlparse import utils


@pytest.mark.parametrize('value, expected', (
[None, None],
['\'foo\'', 'foo'],
['"foo"', 'foo'],
['`foo`', 'foo']))
def test_remove_quotes(value, expected):
assert utils.remove_quotes(value) == expected

0 comments on commit 4235eb8

Please sign in to comment.