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 c15d9ef commit e851457Copy full SHA for e851457
tests/test_client_base.py
@@ -0,0 +1,16 @@
1
+def test_client_id_validation():
2
+ from apitally.client.client_base import ApitallyClientBase
3
+
4
+ ApitallyClientBase._instance = None
5
+ client = ApitallyClientBase(client_id="xxx", env="test")
6
+ assert client.enabled is False
7
8
9
+ client = ApitallyClientBase(client_id="9003a5c6-0725-4502-8e57-963a21ba97b6", env="")
10
11
12
13
+ client = ApitallyClientBase(client_id="9003a5c6-0725-4502-8e57-963a21ba97b6", env="test")
14
+ assert client.enabled is True
15
16
0 commit comments