pytest-dbx
Pytest plugin for testing dbx-based projects.
Install
To use the fixtures in your project, simply add pytest-dbx to your project's dev-dependencies
(where you would place all your test and build dependencies).
Fixtures
In unit tests you can use the dbx_spark fixture to have a spark session available as in Databricks
def test_function(dbx_spark):
sdf = dbx_spark.createDataFrame([[1], [2], [3]], ['a'])
assert sdf.count() == 3
The dbutils_fixture and mlflow_local are automatically used.
Metadata
Release files for pytest-dbx 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest_dbx-0.1.0.tar.gz | 4.5 kB | Without provenance | Details for pytest_dbx-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_dbx-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pytest_dbx-0.1.0-py3-none-any.whl |
Total release size: 9.2 kB
Release files / pytest_dbx-0.1.0.tar.gz
| Download URL | pytest_dbx-0.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0731a1fc6834760735431ea44894954992cff94d0913edf431920ced34b9c49f
|
|
BLAKE2b-256 checksum How to use checksums |
1ef5d1785e38c550dad37d7816db96b4b5a36a8369d76f522748fdb38ad9315a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.8.10 Linux/5.15.0-1023-azure
|
Release files / pytest_dbx-0.1.0-py3-none-any.whl
| Download URL | pytest_dbx-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbaa562fc8b38500fcece8fb09b781b9696b8244ec605e436f657d2a2c5f3b23
|
|
BLAKE2b-256 checksum How to use checksums |
2a72074bdd5150ed52264248da00e65cd77d1e65b7fb05b7bae8d0c827127c9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.8.10 Linux/5.15.0-1023-azure
|
Security for pytest-dbx 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.