Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: ignore known internal warnings on tests #1407

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading