Skip to content

Commit 70c6b20

Browse files
committed
chore: suppress deprecation warning in test
1 parent 788b11a commit 70c6b20

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
@@ -222,6 +222,7 @@ def test_populate_groups(self) -> None:
222222
self.assertEqual("TableauExample", group_list[2].name)
223223
self.assertEqual("local", group_list[2].domain_name)
224224

225+
@pytest.mark.filterwarnings("ignore:This method is deprecated, use bulk_add instead")
225226
def test_get_usernames_from_file(self):
226227
with open(ADD_XML, "rb") as f:
227228
response_xml = f.read().decode("utf-8")
@@ -231,6 +232,7 @@ def test_get_usernames_from_file(self):
231232
assert user_list[0].name == "Cassie", user_list
232233
assert failures == [], failures
233234

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

0 commit comments

Comments
 (0)