tests: Add tests to update visibility policy when target topic is empty.

This commit adds a new test to check how the visibility policy updates
when moving messages to a topic that didn't exist previously.

This test also helps us adding coverage for the code which just
skips setting visibility_policy if there is no need to update the
value because both previous and new value of visibility policy
is INHERIT. The "actions/message_edit.py" file has 100% coverage
now and thus is removed from "not_yet_fully_covered" list.
This commit is contained in:
Sahil Batra
2023-05-11 22:03:01 +05:30
committed by Tim Abbott
parent d645d5c0ec
commit ddb0bb58ed
2 changed files with 143 additions and 1 deletions

View File

@@ -75,7 +75,6 @@ not_yet_fully_covered = [
"analytics/views/stats.py",
"analytics/views/support.py",
# Major lib files should have 100% coverage
"zerver/actions/message_edit.py",
"zerver/actions/presence.py",
"zerver/lib/addressee.py",
"zerver/lib/markdown/__init__.py",