Browse Source

Tests updated as the main file is updated

Akash Singh 3 years ago
parent
commit
c000f6b1a6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/test_SendStatistics.py

+ 2 - 2
tests/test_SendStatistics.py

@@ -16,13 +16,13 @@ kwargs_file.close()
 
 def test_update_data():
     stats.update_data(kwargs)
-    assert stats.Activity_CLICK == 30
+    assert stats.Activity["Activity_CLICK"] == 30
 
 
 def test_update_attribute():
     stats.update_attribute("CLICK", prefix="Activity_")
     stats.update_attribute("Browser")
-    assert stats.Activity_CLICK == 31 and stats.Browser == 2
+    assert stats.Activity["Activity_CLICK"] == 31 and stats.Browser == 2
 
 
 def test_to_dict():