Skip to content

[BUG]: Files.for_cli unusably slow in unit tests #1127

@ericvergnaud

Description

@ericvergnaud

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Calling Files.for_cli from a unit test with a workspace_client_mock takes minutes (or maybe more, I was never patient enough)

Expected Behavior

It should be fast enough so we can use it in unit tests.

Steps To Reproduce

Use Pycharm
In test_files.py, uncomment test_files_for_cli
Run the test

Cloud

AWS

Operating System

macOS

Version

latest via Databricks CLI

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions