Skip to content

Commit fcf64bd

Browse files
committed
chore: suppress deprecation warning in test
1 parent 2772388 commit fcf64bd

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

227+
@pytest.mark.filterwarnings("ignore:This method is deprecated, use bulk_add instead")
227228
def test_get_usernames_from_file(self):
228229
with open(ADD_XML, "rb") as f:
229230
response_xml = f.read().decode("utf-8")
@@ -233,6 +234,7 @@ def test_get_usernames_from_file(self):
233234
assert user_list[0].name == "Cassie", user_list
234235
assert failures == [], failures
235236

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

0 commit comments

Comments
 (0)