8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4700dda commit 8d54ac8Copy full SHA for 8d54ac8
test/test_tableauauth_model.py
@@ -0,0 +1,25 @@
1
+import unittest
2
+import warnings
3
+import tableauserverclient as TSC
4
+
5
6
+class TableauAuthModelTests(unittest.TestCase):
7
+ def setUp(self):
8
+ self.auth = TSC.TableauAuth('user',
9
+ 'password',
10
+ site_id='site1',
11
+ user_id_to_impersonate='admin')
12
13
+ def test_username_password_required(self):
14
+ with self.assertRaises(TypeError):
15
+ TSC.TableauAuth()
16
17
+ def test_site_arg_raises_warning(self):
18
+ with warnings.catch_warnings(record=True) as w:
19
+ warnings.simplefilter("always")
20
21
+ tableau_auth = TSC.TableauAuth('user',
22
23
+ site='Default')
24
25
+ self.assertTrue(any(item.category == DeprecationWarning for item in w))
0 commit comments