Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion csproj/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.IO;
using OpenXmlPowerTools;
using Clippit;
using Clippit.Word;
using DocumentFormat.OpenXml.Packaging;

class Program
Expand Down
3 changes: 1 addition & 2 deletions csproj/redlines.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DocumentFormat.OpenXml" Version="2.8.1" />
<PackageReference Include="Open-Xml-PowerTools" Version="4.4.0" />
<PackageReference Include="Clippit" Version="3.0.1" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/python_redlines/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024-present U.N. Owen <void@some.where>
#
# SPDX-License-Identifier: MIT
__version__ = "0.0.4"
__version__ = "0.0.5"
7 changes: 5 additions & 2 deletions tests/test_openxml_differ.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,21 @@


def load_docx_bytes(file_path):
# Handle relative paths from test directory
if not os.path.isabs(file_path):
file_path = os.path.join(os.path.dirname(__file__), file_path)
with open(file_path, 'rb') as file:
return file.read()


@pytest.fixture
def original_docx():
return load_docx_bytes('tests/fixtures/original.docx')
return load_docx_bytes('fixtures/original.docx')


@pytest.fixture
def modified_docx():
return load_docx_bytes('tests/fixtures/modified.docx')
return load_docx_bytes('fixtures/modified.docx')


def test_run_redlines_with_real_files(original_docx, modified_docx):
Expand Down