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