summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/conftest.py4
-rw-r--r--tests/test_cli.py2
-rw-r--r--tests/test_grouping.py2
-rw-r--r--tests/test_parse.py4
4 files changed, 6 insertions, 6 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index d107f5a..f2eb28e 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -17,7 +17,7 @@ def filepath():
def make_filepath(filename):
# http://stackoverflow.com/questions/18011902/parameter-to-a-fixture
- # Alternate solution is to use paramtrization `inderect=True`
+ # Alternate solution is to use parametrization `indirect=True`
# http://stackoverflow.com/a/33879151
# Syntax is noisy and requires specific variable names
return os.path.join(FILES_DIR, filename)
@@ -31,7 +31,7 @@ def load_file(filepath):
def make_load_file(filename, encoding='utf-8'):
# http://stackoverflow.com/questions/18011902/parameter-to-a-fixture
- # Alternate solution is to use paramtrization `inderect=True`
+ # Alternate solution is to use parametrization `indirect=True`
# http://stackoverflow.com/a/33879151
# Syntax is noisy and requires specific variable names
# And seems to be limited to only 1 argument.
diff --git a/tests/test_cli.py b/tests/test_cli.py
index 485afd3..c96aa5f 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -35,7 +35,7 @@ def test_valid_args(filepath):
def test_invalid_choise(filepath):
path = filepath('function.sql')
with pytest.raises(SystemExit):
- sqlparse.cli.main([path, '-l', 'spanish'])
+ sqlparse.cli.main([path, '-l', 'Spanish'])
def test_invalid_args(filepath, capsys):
diff --git a/tests/test_grouping.py b/tests/test_grouping.py
index 1f3a19e..f26f8b3 100644
--- a/tests/test_grouping.py
+++ b/tests/test_grouping.py
@@ -283,7 +283,7 @@ def test_grouping_alias_case():
def test_grouping_subquery_no_parens():
# Not totally sure if this is the right approach...
- # When a THEN clause contains a subquery w/o parens around it *and*
+ # When a THEN clause contains a subquery w/o parenthesis around it *and*
# a WHERE condition, the WHERE grouper consumes END too.
# This takes makes sure that it doesn't fail.
p = sqlparse.parse('CASE WHEN 1 THEN select 2 where foo = 1 end')[0]
diff --git a/tests/test_parse.py b/tests/test_parse.py
index 4ba6ca1..b6f4fff 100644
--- a/tests/test_parse.py
+++ b/tests/test_parse.py
@@ -270,8 +270,8 @@ def test_array_literal():
def test_typed_array_definition():
- # array indices aren't grouped with builtins, but make sure we can extract
- # indentifer names
+ # array indices aren't grouped with built-ins, but make sure we can extract
+ # identifier names
p = sqlparse.parse('x int, y int[], z int')[0]
names = [x.get_name() for x in p.get_sublists()
if isinstance(x, sql.Identifier)]