Add testing functionality to main file

This commit is contained in:
Corder Guy 2018-04-17 14:57:52 -05:00
parent a38d1f4409
commit bd461c9be9
2 changed files with 5 additions and 13 deletions

View file

@ -160,4 +160,9 @@ def application(environ, start_response):
return [output]
if __name__ == '__main__':
USERNAMES = ['andrew', 'Corder']
print(get_users(USERNAMES))
# vim: tabstop=4 shiftwidth=4 softtabstop=4 expandtab

13
test.py
View file

@ -1,13 +0,0 @@
#!/usr/bin/env python3
import mocha_server
#mocha_server.insert_row(4, 'andrew')
#print(mocha_server.fetch_user(3))
#print(mocha_server.get_top_N('user_id', False, 3))
username_list = ['andrew', 'Corder']
print(mocha_server.get_users(username_list))