aboutsummaryrefslogtreecommitdiff
path: root/test/ganbreeder_test.py
diff options
context:
space:
mode:
authorVee9ahd1 <[email protected]>2019-05-12 01:29:05 -0400
committerVee9ahd1 <[email protected]>2019-05-12 01:29:05 -0400
commit2e27eb73344d691b657f72c8e794f81ce47036c6 (patch)
treefafe6255167c74131f03e2a80b105278c28af30d /test/ganbreeder_test.py
parent560f86d452277084a1be04fbc4c0e8c5f1206ff5 (diff)
implemented most of the basic functionality from the prototype script and created some messy tests
Diffstat (limited to 'test/ganbreeder_test.py')
-rw-r--r--test/ganbreeder_test.py16
1 files changed, 16 insertions, 0 deletions
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()
+