Spaces:
Runtime error
Runtime error
NMPhap
commited on
Commit
•
4f0e322
1
Parent(s):
0354eb3
Update test_friend_request.py
Browse files
tests/test_friend_request.py
CHANGED
@@ -74,7 +74,7 @@ def invitee():
|
|
74 |
yield invitee
|
75 |
class TestFriendRequest():
|
76 |
@pytest.mark.skipif("/friend_request" not in endpoints(),reason="Route not defined")
|
77 |
-
def test_post_friend(self,
|
78 |
# Call the firebase database
|
79 |
friend_request_ref = db.collection('friend_request')
|
80 |
# Remove all the friend_request use for testing in the past
|
@@ -150,4 +150,4 @@ class TestFriendRequest():
|
|
150 |
# Delete entity for next time test
|
151 |
user_ref.document(inviter['id']).delete()
|
152 |
user_ref.document(invitee['id']).delete()
|
153 |
-
|
|
|
74 |
yield invitee
|
75 |
class TestFriendRequest():
|
76 |
@pytest.mark.skipif("/friend_request" not in endpoints(),reason="Route not defined")
|
77 |
+
def test_post_friend(self, client, inviter, invitee):
|
78 |
# Call the firebase database
|
79 |
friend_request_ref = db.collection('friend_request')
|
80 |
# Remove all the friend_request use for testing in the past
|
|
|
150 |
# Delete entity for next time test
|
151 |
user_ref.document(inviter['id']).delete()
|
152 |
user_ref.document(invitee['id']).delete()
|
153 |
+
|