From c9eda34ce468c12ca59b88ad36914301943bdfde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Garc=C3=ADa?= Date: Thu, 23 Jan 2014 23:51:00 -0300 Subject: [PATCH] better tests structure --- tests/test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test.py b/tests/test.py index 3b6c110..428d99a 100644 --- a/tests/test.py +++ b/tests/test.py @@ -7,11 +7,11 @@ from pyfb import Pyfb try: - from test_data import config -except IOError: - print "\nERROR! You must have a test_data.json file providing the facebook app id and the access token." + from test_data import config +except: + print "\nERROR! You must have a test_data.py file providing the facebook app id and the access token." print "\nExample:" - print '\t{\n\t\t"FACEBOOK_APP_ID": "your_app_id"\n\t\t"FACEBOOK_TOKEN": "your_token"\n\t}\n' + print '\tconfig = {\n\t\t"FACEBOOK_APP_ID": "your_app_id"\n\t\t"FACEBOOK_TOKEN": "your_token"\n\t}\n' exit(1)