From 2e27eb73344d691b657f72c8e794f81ce47036c6 Mon Sep 17 00:00:00 2001 From: Vee9ahd1 Date: Sun, 12 May 2019 01:29:05 -0400 Subject: implemented most of the basic functionality from the prototype script and created some messy tests --- test/ganbreeder_test.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/ganbreeder_test.py (limited to 'test/ganbreeder_test.py') diff --git a/test/ganbreeder_test.py b/test/ganbreeder_test.py new file mode 100644 index 0000000..816e077 --- /dev/null +++ b/test/ganbreeder_test.py @@ -0,0 +1,16 @@ +import unittest +from gantools import ganbreeder +from test import secrets + +class TestGanbreeder(unittest.TestCase): + def test_get_info(self): + username = secrets.username + password = secrets.password + sid = ganbreeder.login(username, password) + self.assertNotEqual(sid, '', 'login() failed to produce an sid. check internet connection.') + key = 'd62c507ab4bea4ed7b70c64a' #some arbitrary ganbreeder key + ganbreeder.get_info(sid, key) + +if __name__ == '__main__': + unittest.main() + -- cgit v1.2.1