mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
add travis config
This commit is contained in:
parent
fb1f397fee
commit
cc9b7c28cf
10
.travis.yml
Normal file
10
.travis.yml
Normal file
@ -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…
Reference in New Issue
Block a user