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

[Test] GenerateColumnDescriptions testing and some refactoring #4

Merged
merged 4 commits into from
Apr 15, 2024

Conversation

gwenwindflower
Copy link
Owner

Venturing into the bold new world of API call mocking this morning, using httpmock to mock the Groq API calls required in GenerateColumnDescriptions. Next stop: mocking database calls! The test caught that there was a missing wg.Wait() call.

Also does some very minor refactoring to wrap the WriteYAML and WriteStagingModels calls in main.go with a WriteFiles function to improve the simplicity and readability of main.go.

Testing Groq API responses using httpmock
Was missing the wg.Wait() for the API calls goroutine making the Groq API calls in GenerateColumnDescriptions
… without dbt profile

Paths for DuckDB are absolute when using a dbt profile, but relative to the pwd when entering config manually. The test now accounts for this dynamically instead of hardcoding the local pwd.
Had an entire sentence italicized, this cuts down unnecessary words and use italics for emphasis on key words rather than a whole sentence.
@gwenwindflower gwenwindflower merged commit 851504d into main Apr 15, 2024
1 check passed
@gwenwindflower gwenwindflower deleted the test/generate-col-desc branch April 15, 2024 15:29
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.

1 participant