We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf29804 commit a3a47edCopy full SHA for a3a47ed
Makefile
@@ -0,0 +1,2 @@
1
+test:
2
+ py.test --pyargs popylar --cov-report term-missing --cov=popylar
popylar/tests/test_popylar.py
@@ -18,3 +18,12 @@ def test_track_event_with_version():
18
'test_track_event_with_version',
19
software_version=VERSION)
20
assert r.status_code == 200, "response is not OK"
21
+
22
23
+def test_opt():
24
+ popylar.opt_out()
25
+ parser = popylar.get_or_create_config()
26
+ assert parser['user']['track'] == "False"
27
+ popylar.opt_in()
28
29
+ assert parser['user']['track'] == "True"
0 commit comments