File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 11import os .path
22import unittest
33
4+ import pytest
45import requests_mock
56
67import tableauserverclient as TSC
@@ -109,6 +110,8 @@ def test_get_by_name(self) -> None:
109110 def test_get_by_name_missing_name (self ) -> None :
110111 self .assertRaises (ValueError , self .server .sites .get_by_name , "" )
111112
113+ @pytest .mark .filterwarnings ("ignore:Tiered license level is set" )
114+ @pytest .mark .filterwarnings ("ignore:FlowsEnabled has been removed" )
112115 def test_update (self ) -> None :
113116 with open (UPDATE_XML , "rb" ) as f :
114117 response_xml = f .read ().decode ("utf-8" )
@@ -206,6 +209,7 @@ def test_replace_license_tiers_with_user_quota(self) -> None:
206209 self .assertEqual (1 , test_site .user_quota )
207210 self .assertIsNone (test_site .tier_explorer_capacity )
208211
212+ @pytest .mark .filterwarnings ("ignore:FlowsEnabled has been removed" )
209213 def test_create (self ) -> None :
210214 with open (CREATE_XML , "rb" ) as f :
211215 response_xml = f .read ().decode ("utf-8" )
Original file line number Diff line number Diff line change 77from io import BytesIO
88from pathlib import Path
99
10+ import pytest
11+
1012import tableauserverclient as TSC
1113from tableauserverclient .datetime_helpers import format_datetime
1214from tableauserverclient .models import UserItem , GroupItem , PermissionsRule
@@ -622,6 +624,7 @@ def test_publish_with_hidden_views_on_workbook(self) -> None:
622624 self .assertTrue (re .search (rb"<views><view.*?hidden=\"true\".*?\/><\/views>" , request_body ))
623625 self .assertTrue (re .search (rb"<views><view.*?name=\"GDP per capita\".*?\/><\/views>" , request_body ))
624626
627+ @pytest .mark .filterwarnings ("ignore:'as_job' not available" )
625628 def test_publish_with_query_params (self ) -> None :
626629 with open (PUBLISH_ASYNC_XML , "rb" ) as f :
627630 response_xml = f .read ().decode ("utf-8" )
You can’t perform that action at this time.
0 commit comments