2018-12-25 21:01:08 -08:00
|
|
|
import subprocess
|
|
|
|
|
2019-05-13 23:39:10 +02:00
|
|
|
from flexmock import flexmock
|
2014-12-20 11:37:25 -08:00
|
|
|
|
2017-07-08 22:33:51 -07:00
|
|
|
from borgmatic.commands import borgmatic as module
|
2015-07-18 18:35:29 -07:00
|
|
|
|
|
|
|
|
2018-12-25 21:01:08 -08:00
|
|
|
def test_borgmatic_version_matches_news_version():
|
2019-02-23 23:02:17 -08:00
|
|
|
flexmock(module.collect).should_receive('get_default_config_paths').and_return(['default'])
|
|
|
|
|
2018-12-25 21:01:08 -08:00
|
|
|
borgmatic_version = subprocess.check_output(('borgmatic', '--version')).decode('ascii')
|
|
|
|
news_version = open('NEWS').readline()
|
|
|
|
|
|
|
|
assert borgmatic_version == news_version
|