Skip to content

Commit

Permalink
feat: update workspace list column to Last Update Date
Browse files Browse the repository at this point in the history
Co-authored-by: Alvaro Bartolome <[email protected]>
  • Loading branch information
gabrielmbmb and alvarobartt committed Aug 30, 2023
1 parent 276eac9 commit 08d1975
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/argilla/tasks/workspaces/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def list_workspaces() -> None:
workspaces = Workspace.list()

table = get_argilla_themed_table(title="Workspaces")
for column in ("ID", "Name", "Creation Date", "Update Date"):
for column in ("ID", "Name", "Creation Date", "Last Update Date"):
table.add_column(column, justify="center")

for workspace in workspaces:
Expand Down
13 changes: 13 additions & 0 deletions tests/unit/tasks/users/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2021-present, the Recognai S.L. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
21 changes: 21 additions & 0 deletions tests/unit/tasks/users/test_create.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2021-present, the Recognai S.L. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import pytest


@pytest.mark.usefixtures("login_mock")
class TestSuiteCreateUserCommand:
def test_create_user(self) -> None:
pass
2 changes: 1 addition & 1 deletion tests/unit/tasks/workspaces/test_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_cli_workspaces_list(cli_runner: "CliRunner", cli: "Typer", mocker: "Moc
workspace.inserted_at.isoformat(sep=" "),
workspace.updated_at.isoformat(sep=" "),
)
assert all(col in result.stdout for col in ("ID", "Name", "Creation Date", "Update Date", "test_workspace"))
assert all(col in result.stdout for col in ("ID", "Name", "Creation Date", "Last Update Date", "test_workspace"))
assert result.exit_code == 0


Expand Down

0 comments on commit 08d1975

Please sign in to comment.