databrickslabs / databrickslabs/lsql
[TECH DEBT] Create a fixture to read a dashboard query within a test
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 39
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Maybe we want to implement a fixture to get the query to make sure we test that, something like:
- query = get_query("04_1_....sql")
- Replace database
- Run query
- Verify results
Originally posted by @JCZuurmond in https://github.com/databrickslabs/ucx/pull/2205#discussion_r1706545176
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the tests and existing fixtures for dashboard queries; no specific file or test entry point is named in the issue. Define the fixture around the proposed sequence: load a .sql query, replace the database, run it, and verify the results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, sql
- Domain
- testing-qa
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100