Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
epinzur committed Sep 20, 2023
1 parent 6216a6b commit 2f382f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions clients/python/src/kaskada/api/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
logger = logging.getLogger(__name__)


class LocalRelease(object):
"""Configuration details for a local release. Mostly used for binary paths."""

Expand Down
1 change: 1 addition & 0 deletions clients/python/src/kaskada/api/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

KASKADA_DISABLE_DOWNLOAD_ENV = "KASKADA_DISABLE_DOWNLOAD"


class Session:
def __init__(
self,
Expand Down
6 changes: 4 additions & 2 deletions clients/python/tests/api/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,16 @@ def test_local_builder_set_engine_version():
version = "engine@v0.0.1-beta.1"
builder = kaskada.api.session.LocalBuilder().engine_version(version)
assert builder._engine_version == version



def test_local_builder_set_engine_version_throws():
invalid_versions = ["0.0.1", "engine@0.0.1", "engine@v23", "manager@v1.1.1"]

for version in invalid_versions:
with pytest.raises(ValueError):
builder = kaskada.api.session.LocalBuilder().engine_version(version)


def test_local_builder_set_path_sets_path():
path = "my_path"
builder = kaskada.api.session.LocalBuilder().path(path)
Expand Down

0 comments on commit 2f382f9

Please sign in to comment.