Skip to content

Commit c8e14eb

Browse files
committed
Reorder Assertions in test_set_permissions
1 parent 35c796b commit c8e14eb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/gkeep/test_set_permissions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,16 @@ async def test_set_permissions_no_existing_writers():
126126
]
127127
}
128128

129-
# Verify batchDelete was NOT called since there were no non-owner permissions
130-
mock_service.notes().permissions().batchDelete.assert_not_called()
131-
132129
result = await unwrap(set_permissions)(
133130
service=mock_service,
134131
user_google_email="test@example.com",
135132
note_id="notes/abc123",
136133
emails=["new@example.com"],
137134
)
138135

136+
# Verify batchDelete was NOT called since there were no non-owner permissions
137+
mock_service.notes().permissions().batchDelete.assert_not_called()
138+
139139
assert "Removed 0" in result
140140
assert "Added 1" in result
141141

0 commit comments

Comments
 (0)