Updated unit tests
Browse files- tests/test_plotly.py +3 -3
tests/test_plotly.py
CHANGED
@@ -15,8 +15,8 @@ class TestPlotlyClient:
|
|
15 |
|
16 |
# add toy data for testing
|
17 |
self.postly_instance.add_user("john")
|
18 |
-
for
|
19 |
-
self.postly_instance.add_post("john", post
|
20 |
|
21 |
def test_add_user(self):
|
22 |
assert "john" in self.postly_instance.userPosts
|
@@ -52,7 +52,7 @@ class TestPlotlyClient:
|
|
52 |
def test_delete_user(self):
|
53 |
temporary_postly_instance = PostlyClient()
|
54 |
temporary_postly_instance.add_user("simon")
|
55 |
-
temporary_postly_instance.add_post("simon", "just #coding today"
|
56 |
|
57 |
assert "simon" in temporary_postly_instance.userPosts
|
58 |
|
|
|
15 |
|
16 |
# add toy data for testing
|
17 |
self.postly_instance.add_user("john")
|
18 |
+
for post in self.gt_posts:
|
19 |
+
self.postly_instance.add_post("john", post)
|
20 |
|
21 |
def test_add_user(self):
|
22 |
assert "john" in self.postly_instance.userPosts
|
|
|
52 |
def test_delete_user(self):
|
53 |
temporary_postly_instance = PostlyClient()
|
54 |
temporary_postly_instance.add_user("simon")
|
55 |
+
temporary_postly_instance.add_post("simon", "just #coding today")
|
56 |
|
57 |
assert "simon" in temporary_postly_instance.userPosts
|
58 |
|