Skip to content

Commit dc8e4a1

Browse files
committed
fixes test repo tags
1 parent 6a76c02 commit dc8e4a1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/postgres-database/src/simcore_postgres_database/tags_sql.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
tags.c.color,
1717
]
1818

19-
_ACCESS_COLUMNS = [
19+
_ACCESS_RIGHTS_COLUMNS = [
2020
tags_to_groups.c.read,
2121
tags_to_groups.c.write,
2222
tags_to_groups.c.delete,
2323
]
2424

2525

26-
_COLUMNS = _TAG_COLUMNS + _ACCESS_COLUMNS
26+
_COLUMNS = _TAG_COLUMNS + _ACCESS_RIGHTS_COLUMNS
2727

2828

2929
def _join_user_groups_tag(*, access_condition, tag_id: int, user_id: int):
@@ -129,7 +129,7 @@ def set_tag_access_rights_stmt(
129129
write=write,
130130
delete=delete,
131131
)
132-
.returning(*_ACCESS_COLUMNS)
132+
.returning(*_ACCESS_RIGHTS_COLUMNS)
133133
)
134134

135135

packages/postgres-database/tests/test_repo_tags.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,8 @@ def _check(func_smt, **kwargs):
570570
update_tag_stmt,
571571
user_id=user_id,
572572
tag_id=tag_id,
573-
update={"name": "foo"},
573+
# updates
574+
name="foo",
574575
)
575576

576577
_check(
@@ -586,9 +587,8 @@ def _check(func_smt, **kwargs):
586587

587588
_check(
588589
get_tags_for_services_stmt,
589-
service_key=service_key,
590-
service_version=service_version,
591-
tag_id=tag_id,
590+
key=service_key,
591+
version=service_version,
592592
)
593593

594594
_check(

0 commit comments

Comments
 (0)