Skip to content

Commit 3f0fa6e

Browse files
committed
chore: pytestify auth model
1 parent e8890d6 commit 3f0fa6e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

test/test_tableauauth_model.py

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

33
import tableauserverclient as TSC
44

55

6-
class TableauAuthModelTests(unittest.TestCase):
7-
def setUp(self):
8-
self.auth = TSC.TableauAuth("user", "password", site_id="site1", user_id_to_impersonate="admin")
9-
10-
def test_username_password_required(self):
11-
with self.assertRaises(TypeError):
12-
TSC.TableauAuth()
6+
def test_username_password_required():
7+
with pytest.raises(TypeError):
8+
TSC.TableauAuth()

0 commit comments

Comments
 (0)