Skip to content

Commit

Permalink
chore: ignore known internal warnings on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jorwoods committed Jul 25, 2024
1 parent 79f1788 commit 9cd86ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_site.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os.path
import unittest

import pytest
import requests_mock

import tableauserverclient as TSC
Expand Down Expand Up @@ -109,6 +110,8 @@ def test_get_by_name(self) -> None:
def test_get_by_name_missing_name(self) -> None:
self.assertRaises(ValueError, self.server.sites.get_by_name, "")

@pytest.mark.filterwarnings("ignore:Tiered license level is set")
@pytest.mark.filterwarnings("ignore:FlowsEnabled has been removed")
def test_update(self) -> None:
with open(UPDATE_XML, "rb") as f:
response_xml = f.read().decode("utf-8")
Expand Down Expand Up @@ -206,6 +209,7 @@ def test_replace_license_tiers_with_user_quota(self) -> None:
self.assertEqual(1, test_site.user_quota)
self.assertIsNone(test_site.tier_explorer_capacity)

@pytest.mark.filterwarnings("ignore:FlowsEnabled has been removed")
def test_create(self) -> None:
with open(CREATE_XML, "rb") as f:
response_xml = f.read().decode("utf-8")
Expand Down
3 changes: 3 additions & 0 deletions test/test_workbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
from io import BytesIO
from pathlib import Path

import pytest

import tableauserverclient as TSC
from tableauserverclient.datetime_helpers import format_datetime
from tableauserverclient.models import UserItem, GroupItem, PermissionsRule
Expand Down Expand Up @@ -622,6 +624,7 @@ def test_publish_with_hidden_views_on_workbook(self) -> None:
self.assertTrue(re.search(rb"<views><view.*?hidden=\"true\".*?\/><\/views>", request_body))
self.assertTrue(re.search(rb"<views><view.*?name=\"GDP per capita\".*?\/><\/views>", request_body))

@pytest.mark.filterwarnings("ignore:'as_job' not available")
def test_publish_with_query_params(self) -> None:
with open(PUBLISH_ASYNC_XML, "rb") as f:
response_xml = f.read().decode("utf-8")
Expand Down

0 comments on commit 9cd86ce

Please sign in to comment.