add travis config

pull/252/head
William Ting 11 years ago
parent fb1f397fee
commit cc9b7c28cf

@ -0,0 +1,10 @@
language: python
python:
- 2.7
install:
- pip install --use-mirrors testify
script:
- testify -v tests

@ -1,13 +1,18 @@
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import os
import mock
from testify import TestCase
from testify import assert_equal
from testify import assert_false
from testify import assert_true
from testify import run
import autojump_utils
from autojump_utils import decode
from autojump_utils import first
from autojump_utils import in_bash
from autojump_utils import last
from autojump_utils import sanitize
from autojump_utils import second
@ -55,7 +60,11 @@ class IterationTestCase(TestCase):
class EnvironmentalVariableTestCase(TestCase):
pass
def test_in_bash(self):
os.environ['SHELL'] = '/bin/bash'
assert_true(in_bash())
os.environ['SHELL'] = '/usr/bin/zsh'
assert_false(in_bash())
if __name__ == "__main__":

Loading…
Cancel
Save