diff --git a/HISTORY.rst b/HISTORY.rst index e1c4e8faf..9d0546c8b 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,12 @@ Release History --------------- +Unreleased +++++++++++ + +- fix: remove personal name from default template core properties + (``cp:lastModifiedBy`` is now ``python-pptx``) + 1.0.2 (2024-08-07) ++++++++++++++++++ diff --git a/src/pptx/templates/default.pptx b/src/pptx/templates/default.pptx index e7fd6565f..33613e6ee 100644 Binary files a/src/pptx/templates/default.pptx and b/src/pptx/templates/default.pptx differ diff --git a/tests/test_api.py b/tests/test_api.py index a48f48912..e80b4bd40 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -46,3 +46,14 @@ def prs_(self, request): @pytest.fixture def prs_part_(self, request): return instance_mock(request, PresentationPart) + + +class DescribeDefaultTemplate(object): + """Integration tests for the core properties shipped in the default template.""" + + def it_has_no_personal_name_in_core_properties(self): + core_props = Presentation().core_properties + + assert core_props.author == "" + assert core_props.last_modified_by == "python-pptx" + assert "Steve Canny" not in core_props.blob.decode("utf-8")