Skip to content

Commit

Permalink
:chore: format code [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloPardoGarcia committed Oct 1, 2024
1 parent d29ec90 commit 5ec3164
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/glassflow/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,7 @@ def create(self) -> Pipeline:
if self.name is None:
raise ValueError("Name must be provided in order to create the pipeline")
if self.space_id is None:
raise ValueError(
"Argument space_id must be provided in the constructor"
)
raise ValueError("Argument space_id must be provided in the constructor")
if self.transformation_file is None:
raise ValueError(
"Argument transformation_file must be provided in the constructor"
Expand Down
8 changes: 4 additions & 4 deletions tests/glassflow/unit_tests/pipeline_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ def test_pipeline_with_transformation_file():

def test_pipeline_fail_with_file_not_found():
with pytest.raises(FileNotFoundError):
p = Pipeline(transformation_file="fake_file.py", personal_access_token="test-token")
p = Pipeline(
transformation_file="fake_file.py", personal_access_token="test-token"
)
p._read_transformation_file()


Expand Down Expand Up @@ -134,9 +136,7 @@ def test_create_pipeline_fail_with_missing_space_id(client):
personal_access_token="test-token",
).create()

assert str(e.value) == (
"Argument space_id must be provided in the constructor"
)
assert str(e.value) == ("Argument space_id must be provided in the constructor")


def test_create_pipeline_fail_with_missing_transformation(client):
Expand Down

0 comments on commit 5ec3164

Please sign in to comment.