From e4eff0e3dc7542cd00bed2762a065afba11743f1 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Fri, 24 Apr 2020 15:56:56 -0700 Subject: [PATCH] Bump version for release. --- NEWS | 4 +++- setup.py | 2 +- tests/unit/hooks/test_postgresql.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 656d6a4..09e7691 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,7 @@ -1.5.2.dev0 +1.5.2 * #301: Fix MySQL restore error on "all" database dump by excluding system tables. + * Fix PostgreSQL restore error on "all" database dump by using "psql" for the restore instead of + "pg_restore". 1.5.1 * #289: Tired of looking up the latest successful archive name in order to pass it to borgmatic diff --git a/setup.py b/setup.py index 6bad930..02b3367 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import find_packages, setup -VERSION = '1.5.2.dev0' +VERSION = '1.5.2' setup( diff --git a/tests/unit/hooks/test_postgresql.py b/tests/unit/hooks/test_postgresql.py index 31ced60..5c79c22 100644 --- a/tests/unit/hooks/test_postgresql.py +++ b/tests/unit/hooks/test_postgresql.py @@ -310,7 +310,7 @@ def test_restore_database_dumps_runs_pg_restore_with_username_and_password(): module.restore_database_dumps(databases, 'test.yaml', {}, dry_run=False) -def test_restore_all_database_dump(): +def test_restore_database_dumps_runs_psql_for_all_database_dump(): databases = [{'name': 'all'}] flexmock(module).should_receive('make_dump_path').and_return('') flexmock(module.dump).should_receive('make_database_dump_filename').and_return(