Ver Fonte

Fix failing build

 * remove -t flag
 * install project in travis
oz123 há 11 anos atrás
pai
commit
64b006685e
2 ficheiros alterados com 3 adições e 2 exclusões
  1. 1 0
      .travis.yml
  2. 2 2
      pwman/tests/test_complete_ui.py

+ 1 - 0
.travis.yml

@@ -6,6 +6,7 @@ python:
 install: 
      - "pip install -r requirements.txt"
      - "pip install coveralls"
+     - "pip install ."
 # command to run tests, e.g. python setup.py test
 script:  
     # coverage run --source=pwman setup.py test

+ 2 - 2
pwman/tests/test_complete_ui.py

@@ -35,7 +35,7 @@ class Ferrum(unittest.TestCase):
         "when trying to run with old db, we should see warning"
         child = pexpect.spawn(os.path.join(os.path.dirname(__file__),
                                            '../../scripts/pwman3') +
-                              ' -t -d '+OLD_DB_PATH)
+                              ' -d '+OLD_DB_PATH)
         self.assertEqual(0, child.expect(_db_warn, timeout=0.5))
 
     def test_run_convert(self):
@@ -44,7 +44,7 @@ class Ferrum(unittest.TestCase):
         logfile = open(lfile, 'w')
         child = pexpect.spawn(os.path.join(os.path.dirname(__file__),
                                            '../../scripts/pwman3') +
-                              ' -t -k -e Blowfish -d '+OLD_DB_PATH,
+                              ' -k -e Blowfish -d '+OLD_DB_PATH,
                               logfile=logfile)
         child.expect('[\s|\S]+Please enter your password:', timeout=5)
         self.assertEqual(6, child.sendline('12345'))