forked from sqlfluff/sqlfluff
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow global config for rule testcases (sqlfluff#1580)
* FIx broken block comments in exasol * Allow adding a global test config per testcase * Respect config per testcase * Allow adding a global test config per testcase * Respect config per testcase * add testcase * make unittest description more meaningful Co-authored-by: Alan Cruickshank <alanmcruickshank@gmail.com> Co-authored-by: Barry Pollard <barry@tunetheweb.com>
- Loading branch information
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
rule: R001 | ||
configs: | ||
core: | ||
dialect: exasol | ||
|
||
|
||
tc1: | ||
pass_str: | | ||
create table if not exists tab.xxx (col1 varchar(10)) | ||
configs: | ||
core: | ||
dialect: ansi | ||
|
||
tc2: | ||
pass_str: | | ||
create table tab.xxx (col1 varchar(10)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters