Skip to content

Commit bcc6592

Browse files
author
Anatoly Rugalev
authored
[CHAT-2260] Add condition to custom permissions tests (#77)
1 parent fe069de commit bcc6592

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

stream_chat/tests/async_chat/test_client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,9 @@ def wait():
486486
"action": "DeleteChannel",
487487
"owner": False,
488488
"same_team": True,
489+
"condition": {
490+
"$subject.magic_custom_field": "magic_custom_value",
491+
},
489492
}
490493

491494
await client.create_permission(custom)

stream_chat/tests/test_client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,9 @@ def wait():
411411
"action": "DeleteChannel",
412412
"owner": False,
413413
"same_team": True,
414+
"condition": {
415+
"$subject.magic_custom_field": "magic_custom_value",
416+
},
414417
}
415418

416419
client.create_permission(custom)

0 commit comments

Comments
 (0)