Skip to content

Commit

Permalink
Release v0.2.4 (#55)
Browse files Browse the repository at this point in the history
* Fixed PyPI metadata
([#54](#54)). In this
commit, the PyPI metadata for the pytester project has been updated with
the new repository location at
<https://github.com/databrickslabs/pytester>. The URLs for issues and
source have been changed to point to the new repository, with the
`issues` URL now directing to
<https://github.com/databrickslabs/pytester/issues> and the `source` URL
to <https://github.com/databrickslabs/pytester>. Furthermore, the
versioning tool `hatch` has been configured to manage the version number
in the "src/databricks/labs/pytester/__about__.py" file. This ensures
accurate and consistent versioning for the pytester project moving
forward.
* Improve `make_group`/`make_acc_group` fixture consistency
([#50](#50)). This PR
introduces improvements to the `make_group` and `make_acc_group`
fixtures, designed for managing Databricks workspace groups. The
enhancements include a double-check approach to ensure group visibility
by requiring the group to be retrievable via both `.get()` and `.list()`
calls. This mitigates, but does not entirely eliminate, consistency
issues with the APIs used for managing groups. The
`wait_for_provisioning` argument has been removed and replaced with an
internal wait mechanism. The argument is still accepted but triggers a
deprecation warning. Internal unit-test plumbing has been updated to use
mock fixtures tailored for each test, ensuring double-check
implementation testability. New and updated unit tests are included in
the `test_iam.py` file, along with the introduction of the
`_setup_groups_api` function, which mocks specific clients to ensure
group visibility when created. These changes improve consistency and
reliability when working with Databricks workspace groups, making it
easier for users to adopt the project.
  • Loading branch information
nfx authored Sep 24, 2024
1 parent c11bc6d commit 512c014
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Version changelog

## 0.2.4

* Fixed PyPI metadata ([#54](https://github.com/databrickslabs/pytester/issues/54)). In this commit, the PyPI metadata for the pytester project has been updated with the new repository location at <https://github.com/databrickslabs/pytester>. The URLs for issues and source have been changed to point to the new repository, with the `issues` URL now directing to <https://github.com/databrickslabs/pytester/issues> and the `source` URL to <https://github.com/databrickslabs/pytester>. Furthermore, the versioning tool `hatch` has been configured to manage the version number in the "src/databricks/labs/pytester/__about__.py" file. This ensures accurate and consistent versioning for the pytester project moving forward.
* Improve `make_group`/`make_acc_group` fixture consistency ([#50](https://github.com/databrickslabs/pytester/issues/50)). This PR introduces improvements to the `make_group` and `make_acc_group` fixtures, designed for managing Databricks workspace groups. The enhancements include a double-check approach to ensure group visibility by requiring the group to be retrievable via both `.get()` and `.list()` calls. This mitigates, but does not entirely eliminate, consistency issues with the APIs used for managing groups. The `wait_for_provisioning` argument has been removed and replaced with an internal wait mechanism. The argument is still accepted but triggers a deprecation warning. Internal unit-test plumbing has been updated to use mock fixtures tailored for each test, ensuring double-check implementation testability. New and updated unit tests are included in the `test_iam.py` file, along with the introduction of the `_setup_groups_api` function, which mocks specific clients to ensure group visibility when created. These changes improve consistency and reliability when working with Databricks workspace groups, making it easier for users to adopt the project.


## 0.2.3

* Support providing name in `make_catalog` fixture ([#52](https://github.com/databrickslabs/pytester/issues/52)). The `make_catalog` fixture in our open-source library has been updated to allow users to specify a name for the catalog using a new `name` parameter. Previously, the catalog was given a random name, but now users can have more control and customization over catalog names in their tests. This change includes updates to the docstring and the addition of unit tests to ensure the fixture behaves as expected with the new parameter. Additionally, the underlying `call_stateful` function was updated to expect a callable that returns a generator of callables, enabling the support for providing a name. The `test_make_catalog_creates_catalog_with_name` and `test_make_catalog` tests have been added to verify the behavior of the fixture with the new `name` parameter.
Expand Down
2 changes: 1 addition & 1 deletion src/databricks/labs/pytester/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.3"
__version__ = "0.2.4"

0 comments on commit 512c014

Please sign in to comment.