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

Create an extra test for constants that are not strings #1394

Closed
wants to merge 2 commits into from
Closed

Create an extra test for constants that are not strings #1394

wants to merge 2 commits into from

Conversation

jimidle
Copy link
Contributor

@jimidle jimidle commented Apr 13, 2024

Changes

While the DBFS linter successfully detects DBFS references in string constants, there was no test to cover the case when a constant is not, in fact, a string. An extra test has been added to increase coverage to 100%.

Linked issues

Resolves #1104

Functionality

  • added relevant user documentation
  • added new CLI command
  • modified existing command: databricks labs ucx ...
  • added a new workflow
  • modified existing workflow: ...
  • added a new table
  • modified existing table: ...

Tests

  • manually tested
  • added unit tests
  • added integration tests
  • verified on staging environment (screenshot attached)

  - Extra test to cover the case of a constant not being a str

Signed-off-by: Jim.Idle <[email protected]>
@jimidle jimidle requested review from a team and aminmovahed-db April 13, 2024 20:35
@nfx
Copy link
Collaborator

nfx commented Apr 14, 2024

@jimidle This is a zero-diff pr

@jimidle
Copy link
Contributor Author

jimidle commented Apr 14, 2024

Hmm - the extra test must already have made it in.

@jimidle jimidle closed this Apr 14, 2024
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.

[FEATURE]: Detect usages of DBFS Mount paths in Python code dbutils.fs code and suggest rewrites
2 participants