Skip to content

Commit 54c48b0

Browse files
authored
chore: pytestify wb_model (#1710)
* fix: black ci errors * chore: pytestify wb_model --------- Co-authored-by: Jordan Woods <[email protected]>
1 parent 29bf79a commit 54c48b0

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

test/test_workbook_model.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
import unittest
1+
import pytest
22

33
import tableauserverclient as TSC
44

55

6-
class WorkbookModelTests(unittest.TestCase):
7-
def test_invalid_show_tabs(self):
8-
workbook = TSC.WorkbookItem("10")
9-
with self.assertRaises(ValueError):
10-
workbook.show_tabs = "Hello"
6+
def test_invalid_show_tabs():
7+
workbook = TSC.WorkbookItem("10")
8+
with pytest.raises(ValueError):
9+
workbook.show_tabs = "Hello"
1110

12-
with self.assertRaises(ValueError):
13-
workbook.show_tabs = None
11+
with pytest.raises(ValueError):
12+
workbook.show_tabs = None

0 commit comments

Comments
 (0)