Skip to content

Commit cf441b5

Browse files
committed
final tests
1 parent 68cb621 commit cf441b5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

services/web/server/tests/integration/01/test_exporter_requests_handlers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ async def user(client: TestClient) -> AsyncIterable[UserInfoDict]:
203203
async def project(
204204
client: TestClient, template_path: Path, user: UserInfoDict, product_name: str
205205
) -> AsyncIterable[ProjectDict]:
206+
assert client.app
207+
206208
project = await _new_project(
207209
client=client,
208210
user=user,

services/web/server/tests/unit/with_dbs/03/tags/test_tags.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,13 +433,16 @@ def product_name() -> str:
433433
[
434434
(
435435
role,
436-
status.HTTP_403_FORBIDDEN if role < UserRole.TESTER else status.HTTP_200_OK,
436+
# granted only to:
437+
status.HTTP_403_FORBIDDEN
438+
if role < UserRole.TESTER
439+
else status.HTTP_201_CREATED,
437440
)
438441
for role in UserRole
439442
if role >= UserRole.USER
440443
],
441444
)
442-
async def test_can_share_tag_with_product_group_if_granted_by_role(
445+
async def test_can_only_share_tag_with_product_group_if_granted_by_role(
443446
client: TestClient,
444447
logged_user: UserInfoDict,
445448
user_role: UserRole,

0 commit comments

Comments
 (0)