Skip to content

Commit 086bd2d

Browse files
committed
chore: pytestify test_group_model
1 parent e04180d commit 086bd2d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/test_group_model.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import unittest
1+
import pytest
22

33
import tableauserverclient as TSC
44

55

6-
class GroupModelTests(unittest.TestCase):
7-
def test_invalid_minimum_site_role(self):
8-
group = TSC.GroupItem("grp")
9-
with self.assertRaises(ValueError):
10-
group.minimum_site_role = "Captain"
6+
def test_invalid_minimum_site_role():
7+
group = TSC.GroupItem("grp")
8+
with pytest.raises(ValueError):
9+
group.minimum_site_role = "Captain"
1110

12-
def test_invalid_license_mode(self):
13-
group = TSC.GroupItem("grp")
14-
with self.assertRaises(ValueError):
15-
group.license_mode = "off"
11+
12+
def test_invalid_license_mode():
13+
group = TSC.GroupItem("grp")
14+
with pytest.raises(ValueError):
15+
group.license_mode = "off"

0 commit comments

Comments
 (0)