Skip to content

Commit 8c15fdb

Browse files
committed
chore: suppress deprecation warning in test
1 parent 622502c commit 8c15fdb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_user.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ def test_populate_groups(self) -> None:
239239
self.assertEqual("TableauExample", group_list[2].name)
240240
self.assertEqual("local", group_list[2].domain_name)
241241

242+
@pytest.mark.filterwarnings("ignore:This method is deprecated, use bulk_add instead")
242243
def test_get_usernames_from_file(self):
243244
with open(ADD_XML, "rb") as f:
244245
response_xml = f.read().decode("utf-8")
@@ -248,6 +249,7 @@ def test_get_usernames_from_file(self):
248249
assert user_list[0].name == "Cassie", user_list
249250
assert failures == [], failures
250251

252+
@pytest.mark.filterwarnings("ignore:This method is deprecated, use bulk_add instead")
251253
def test_get_users_from_file(self):
252254
with open(ADD_XML, "rb") as f:
253255
response_xml = f.read().decode("utf-8")

0 commit comments

Comments
 (0)