diff --git a/admin/tests/test_securedrop-admin-setup.py b/admin/tests/test_securedrop-admin-setup.py index 0c930b476a6..a5785b1ffac 100644 --- a/admin/tests/test_securedrop-admin-setup.py +++ b/admin/tests/test_securedrop-admin-setup.py @@ -82,8 +82,8 @@ def test_python3_buster_venv_deleted_in_bullseye(self, tmpdir, caplog): with mock.patch("bootstrap.is_tails", return_value=True): with mock.patch("builtins.open", mock.mock_open(read_data='TAILS_VERSION_ID="5.0"')): bootstrap.clean_up_old_tails_venv(venv_path) - assert "Tails 4 virtualenv detected." in caplog.text - assert "Tails 4 virtualenv deleted." in caplog.text + assert "Tails 5 virtualenv detected." in caplog.text + assert "Tails 5 virtualenv deleted." in caplog.text assert not os.path.exists(venv_path) def test_python3_bullseye_venv_not_deleted_in_bullseye(self, tmpdir, caplog): @@ -93,7 +93,7 @@ def test_python3_bullseye_venv_not_deleted_in_bullseye(self, tmpdir, caplog): with mock.patch("bootstrap.is_tails", return_value=True): with mock.patch("subprocess.check_output", return_value="bullseye"): bootstrap.clean_up_old_tails_venv(venv_path) - assert "Tails 4 virtualenv detected" not in caplog.text + assert "Tails 5 virtualenv detected" not in caplog.text assert os.path.exists(venv_path) def test_python3_buster_venv_not_deleted_in_buster(self, tmpdir, caplog):