Fixed test that didn't pass anymore (since there were more settings). I also enforced python3 in ci-build.sh otherwise python2.7 would generate syntax errors. Hope it's not a problem

This commit is contained in:
Matthieu Coudron 2014-12-17 18:17:19 +01:00
parent b37c7e28f8
commit ff7ea14689
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ pep8 --ignore E501 i3pystatus tests
# Check that the setup.py script works
rm -rf ${BUILD}/test-install ${BUILD}/test-install-bin
mkdir ${BUILD}/test-install ${BUILD}/test-install-bin
PYTHONPATH=${BUILD}/test-install python setup.py --quiet install --install-lib ${BUILD}/test-install --install-scripts ${BUILD}/test-install-bin
PYTHONPATH=${BUILD}/test-install python3 setup.py --quiet install --install-lib ${BUILD}/test-install --install-scripts ${BUILD}/test-install-bin
test -f ${BUILD}/test-install-bin/i3pystatus

View File

@ -11,7 +11,7 @@ class IntervalModuleMetaTest(unittest.TestCase):
def test_no_settings(self):
class NoSettings(IntervalModule):
pass
self.assertEqual(NoSettings.settings, ('interval',))
self.assertTrue('interval' in NoSettings.settings)
def test_no_interval_setting(self):
class NoIntervalSetting(IntervalModule):