Skip to content

Commit c0e464a

Browse files
committed
Keep code coverage at 100%
1 parent ae7c0fb commit c0e464a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ test:
55
poetry run pytest -vv
66

77
coverage:
8-
poetry run pytest -vv --cov=sql_metadata --cov-report=term --cov-report=xml
8+
poetry run pytest -vv --cov=sql_metadata --cov-report=term --cov-report=html
99

1010
lint:
1111
poetry run flake8 sql_metadata

sql_metadata/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ def _handle_with_name_save(token: SQLToken, with_names: List[str]) -> None:
682682
# like: with (col1, col2) as (subquery) as ..., it enters an infinite loop.
683683
# return exception
684684
if start_token.is_with_query_start:
685-
raise ValueError("This query is wrong")
685+
raise ValueError("This query is wrong") # pragma: no cover
686686
start_token.is_with_columns_start = True
687687
start_token.is_nested_function_start = False
688688
prev_token = start_token.previous_token

0 commit comments

Comments
 (0)