Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segregate dbt plugin tests #1610

Merged
merged 7 commits into from Oct 14, 2021
Merged

Segregate dbt plugin tests #1610

merged 7 commits into from Oct 14, 2021

Conversation

alanmcruickshank
Copy link
Member

This continues the thread of segregating the dbt plugin.

It migrates any of the dbt tests into the plugin directory. They remain part of the standard test suite, but the connection between sqlfluff core and the dbt templater would now be complete, where all dbt related code is housed in the plugin.

In the process it changes how we call the dbt and plugin tests. Rather than using mark (and therefore -m "dbt" or -m "not dbt"), but instead we now point at the directory housing the tests (either test or plugins/sqlfluff-templater-dbt).

I hope this sets the stage for other plugins which we either house within the core repo, or that people might want to use as a template for other plugins.

@codecov
Copy link

codecov bot commented Oct 12, 2021

Codecov Report

Merging #1610 (c21a150) into main (6e4f2fc) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##              main     #1610   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          133       133           
  Lines         9250      9250           
=========================================
  Hits          9250      9250           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6e4f2fc...c21a150. Read the comment docs.

Copy link
Member

@tunetheweb tunetheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes look fine.

Can you update line 158 of CONTRIBUTING.md too?

@barrywhart any thoughts from the Python side?

tox.ini Show resolved Hide resolved
@alanmcruickshank alanmcruickshank merged commit 30a04a0 into main Oct 14, 2021
@alanmcruickshank alanmcruickshank deleted the ac/dbt_tests branch October 14, 2021 13:41
CyberShadow pushed a commit to CyberShadow/sqlfluff that referenced this pull request Oct 14, 2021
* Segregate dbt plugin tests

* linting

* update contributing.md

Co-authored-by: Barry Pollard <barry@tunetheweb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants