update test_data.json
This commit is contained in:
6
test_data.json
Normal file
6
test_data.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"email": "",
|
||||||
|
"password": "",
|
||||||
|
"user_thread_id": "",
|
||||||
|
"group_thread_id": ""
|
||||||
|
}
|
11
tests.py
11
tests.py
@@ -18,14 +18,7 @@ logging.basicConfig(level=logging.INFO)
|
|||||||
Tests for fbchat
|
Tests for fbchat
|
||||||
~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
To use these tests, make a json file called test_data.json, put this example in it, and fill in the gaps:
|
To use these tests, fill in test_data.json or type this information manually in the terminal prompts.
|
||||||
{
|
|
||||||
"email": "example@email.com",
|
|
||||||
"password": "example_password",
|
|
||||||
"group_thread_id": 0,
|
|
||||||
"user_thread_id": 0
|
|
||||||
}
|
|
||||||
or type this information manually in the terminal prompts.
|
|
||||||
|
|
||||||
- email: Your (or a test user's) email / phone number
|
- email: Your (or a test user's) email / phone number
|
||||||
- password: Your (or a test user's) password
|
- password: Your (or a test user's) password
|
||||||
@@ -169,7 +162,7 @@ if __name__ == 'tests':
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open(path.join(path.dirname(__file__), 'test_data.js'), 'r') as f:
|
with open(path.join(path.dirname(__file__), 'test_data.json'), 'r') as f:
|
||||||
json = json.load(f)
|
json = json.load(f)
|
||||||
email = json['email']
|
email = json['email']
|
||||||
password = json['password']
|
password = json['password']
|
||||||
|
Reference in New Issue
Block a user