Utility : Remorph (Databricks)
Issue : 'User `me@example.com` doesn't have required privileges :: ``to access catalog `remorph`' while running 'make test' cmd
I am encountering an issue while running tests for Databricks Labs Remorph using 'make test' cmd. The error indicates that the mock user does not have the required privileges to access the catalog remorph, despite explicitly adding the user to the 'admins' group.
1. Relevant Code Snippet :
@pytest.fixture
def ws():
w = create_autospec(WorkspaceClient)
w.current_user.me.side_effect = lambda: iam.User(
user_name="me@example.com", groups=[iam.ComplexValue(display="admins")],
)
w.config.return_value = {"warehouse_id" , "1234"}
return w
2. Troubleshooting Steps Taken: