Skip to content

Commit

Permalink
Fix more references to restic 0.15.0 (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch authored Sep 3, 2023
1 parent 9fcab49 commit 35edf46
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ I personally use this library for my backups. I've published my backup script at

## Compatibility

resticpy is tested against [restic 0.15.0](https://github.com/restic/restic/releases/tag/v0.15.0).
resticpy is tested against [restic 0.16.0](https://github.com/restic/restic/releases/tag/v0.16.0).

## Acknowledgments

Expand Down
6 changes: 3 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -549,12 +549,12 @@ None
### Example

```python
>>> restic.binary_path = 'c:/restic/restic_0.15.0_windows_amd64.exe'
>>> restic.binary_path = 'c:/restic/restic_0.16.0_windows_amd64.exe'
>>> restic.version()
{
'architecture': 'amd64',
'go_version': '1.19.5',
'go_version': '1.20.6',
'platform_version': 'windows',
'restic_version': '0.15.0'
'restic_version': '0.16.0'
}
```
6 changes: 3 additions & 3 deletions restic/internal/version_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ class VersionTest(unittest.TestCase):
@mock.patch.object(version.command_executor, 'execute')
def test_version(self, mock_execute):
mock_execute.return_value = (
'restic 0.15.0 compiled with go1.19.5 on windows/amd64')
'restic 0.16.0 compiled with go1.20.6 on windows/amd64')

self.assertEqual(
{
'architecture': 'amd64',
'go_version': '1.19.5',
'go_version': '1.20.6',
'platform_version': 'windows',
'restic_version': '0.15.0'
'restic_version': '0.16.0'
}, restic.version())

mock_execute.assert_called_with(['restic', '--json', 'version'])

0 comments on commit 35edf46

Please sign in to comment.