Skip to content

Commit ee011ab

Browse files
committed
chore: pytestify wb_model
1 parent e648cd4 commit ee011ab

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)