diff options
| author | nitromaster101 <nitromaster101@5914aa95-5b3a-0410-a3b5-7b719e7fe9b2> | 2009-07-10 02:03:14 +0000 |
|---|---|---|
| committer | nitromaster101 <nitromaster101@5914aa95-5b3a-0410-a3b5-7b719e7fe9b2> | 2009-07-10 02:03:14 +0000 |
| commit | c2f3f59c07c6b9a35538c78d3d43b99a803bac72 (patch) | |
| tree | 697fde6028d5c6c6c5e44dc1f7d55771c08274e3 /test/runtests.py | |
| parent | d4920e748f86dafa89e6a19102cc36c4a6ea22b3 (diff) | |
added command line tools and minor changes
git-svn-id: http://freebase-python.googlecode.com/svn/trunk@176 5914aa95-5b3a-0410-a3b5-7b719e7fe9b2
Diffstat (limited to 'test/runtests.py')
| -rw-r--r-- | test/runtests.py | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/test/runtests.py b/test/runtests.py index 65f02c9..c90afb7 100644 --- a/test/runtests.py +++ b/test/runtests.py @@ -5,6 +5,8 @@ import os.path import freebase +import getlogindetails + def main(): created = False passwordfile = "test/.password.txt" @@ -12,17 +14,8 @@ def main(): # setup password stuff if not os.path.isfile(passwordfile): created = True - USERNAME, PASSWORD = "", "" - print "RUNTESTSIn order to run the tests, we need to use a valid freebase username and password" - USERNAME = raw_input("Please enter your username: ") - PASSWORD = raw_input("Please enter your password (it'll appear in cleartext): ") - - freebase.login(USERNAME, PASSWORD) - - print "Thanks!" - fh = open(passwordfile, "w") - fh.write(USERNAME + "\n" + PASSWORD) - fh.close() + USERNAME, PASSWORD = getlogindetails.main(create_password_file=True) + USERNAME, PASSWORD = getlogindetails.main() # run tests import test_freebase @@ -34,7 +27,7 @@ def main(): # This is very strange. If you try to do [s1, s2], thereby running freebase tests first, # two tests in the testschemamanipulation file fail! They fail because of caching issues; if # I check on freebase, the changes are actually there. I have racked my mind for explanations. - anotherrun = unittest.TestSuite([s2, s1]) + anotherrun = unittest.TestSuite([s1, s2]) #run = unittest.TestSuite(suites) |
