From ef352f097a2aad714a5c8e7f2a55fdcb2eeb73c2 Mon Sep 17 00:00:00 2001 From: Dainius Date: Wed, 10 May 2017 18:44:20 +0300 Subject: [PATCH] update test_data.json --- test_data.json | 6 ++++++ tests.py | 11 ++--------- 2 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 test_data.json diff --git a/test_data.json b/test_data.json new file mode 100644 index 0000000..549d9d5 --- /dev/null +++ b/test_data.json @@ -0,0 +1,6 @@ +{ + "email": "", + "password": "", + "user_thread_id": "", + "group_thread_id": "" +} diff --git a/tests.py b/tests.py index b8134e1..4463414 100644 --- a/tests.py +++ b/tests.py @@ -18,14 +18,7 @@ logging.basicConfig(level=logging.INFO) 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: -{ - "email": "example@email.com", - "password": "example_password", - "group_thread_id": 0, - "user_thread_id": 0 -} -or type this information manually in the terminal prompts. +To use these tests, fill in test_data.json or type this information manually in the terminal prompts. - email: Your (or a test user's) email / phone number - password: Your (or a test user's) password @@ -169,7 +162,7 @@ if __name__ == 'tests': pass 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) email = json['email'] password = json['password']