databrickslabs / blueprint

Baseline for Databricks Labs projects written in Python
https://pypi.org/project/databricks-labs-blueprint/
Other
19 stars 8 forks source link

Using `ProductInfo` with integration tests #63

Closed nfx closed 7 months ago

nfx commented 7 months ago

When you're integration testing your installations, you may want to have different installation folders for each test execution. ProductInfo.for_testing(klass) helps you with this:

from ... import ConfigurationClass
from databricks.labs.blueprint.wheels import ProductInfo

first = ProductInfo.for_testing(ConfigurationClass)
second = ProductInfo.for_testing(ConfigurationClass)
assert first.product_name() != second.product_name()

Fix #62

codecov[bot] commented 7 months ago

Codecov Report

Attention: Patch coverage is 70.00000% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 77.59%. Comparing base (f9909ba) to head (405da41).

Files Patch % Lines
src/databricks/labs/blueprint/wheels.py 70.00% 5 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #63 +/- ## ========================================== - Coverage 77.72% 77.59% -0.13% ========================================== Files 14 14 Lines 1396 1415 +19 Branches 245 249 +4 ========================================== + Hits 1085 1098 +13 - Misses 221 226 +5 - Partials 90 91 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 7 months ago

✅ 11/11 passed, 2 skipped, 24s total

Running from acceptance #63