salt/tests
Benjamin Drung df8d7b9d05 Fix twilio version checking
twilio.__version__ is a string and twilio.__version_info__ is a tuple of
strings containing integers [e.g. ('6', '8', '2')]. The
test_twilio_notify unittest fails:

```
ERROR: unit.modules.test_twilio_notify (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: unit.modules.test_twilio_notify
Traceback (most recent call last):
  File "/usr/lib/python3.7/unittest/loader.py", line 434, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python3.7/unittest/loader.py", line 375, in _get_module_from_name
    __import__(name)
  File "tests/unit/modules/test_twilio_notify.py", line 20, in <module>
    import salt.modules.twilio_notify as twilio_notify
  File "salt/modules/twilio_notify.py", line 28, in <module>
    if twilio.__version__ > 5:
TypeError: '>' not supported between instances of 'str' and 'int'
```

Fix the twilio version check to use __version_info__ and converting its
elements to int.
2018-12-21 11:21:58 +01:00
..
integration fixing lint 2018-12-18 16:48:14 -08:00
kitchen
perf
pkg/rpm
support Fix linter warnings 2018-12-19 10:03:18 -07:00
unit Fix twilio version checking 2018-12-21 11:21:58 +01:00
utils
__init__.py
buildpackage.py
committer_parser.py
conftest.py Merge branch '2017.7' into '2018.3' 2018-06-11 11:45:37 -04:00
consist.py
eventlisten.py
eventlisten.sh
filename_map.yml Adding integration.scheduler.test_maxrunning to filename_map.yml 2018-11-23 17:07:16 -08:00
jenkins.py
minionswarm.py Merge branch '2017.7' into '2018.3' 2018-06-11 11:45:37 -04:00
modparser.py
packdump.py
runtests.py Don't run unit or integration tests unnecessarily 2018-10-23 14:21:21 -05:00
salt-tcpdump.py
saltsh.py
wheeltest.py
whitelist.txt Merge branch '2018.3' into shelltests 2018-10-05 11:15:23 -07:00
zypp_plugin.py