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