databrickslabs / databrickslabs/lsql

[TECH DEBT] Create a fixture to read a dashboard query within a test

Open
#306 0 comments 0 reactions 0 assignees View on GitHub

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:

  1. query = get_query("04_1_....sql")
  2. Replace database
  3. Run query
  4. Verify results

Originally posted by @JCZuurmond in https://github.com/databrickslabs/ucx/pull/2205#discussion_r1706545176

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.