Skip to content

Commit

Permalink
fixup! ci: Use xml2rfc-fonts for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Jun 17, 2024
1 parent 4e2cdf1 commit 18b7023
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
echo "Installing pip + wheel..."
python -m pip install --upgrade pip wheel
echo "Installing requirements.txt + test dependencies..."
python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint>=53.0,!=57.0,!=60.0"
python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint>=53.0,!=57.0,!=60.0,<=61.2"
- name: Generate Valid Tests
run: |
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
echo "Installing pip + wheel..."
python -m pip install --upgrade pip wheel
echo "Installing requirements.txt + test dependencies..."
python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint>=53.0,!=57.0,!=60.0"
python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint>=53.0,!=57.0,!=60.0,<=61.2"
- name: Generate Valid Tests
run: |
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:
# echo "Installing pip + wheel..."
# python -m pip install --upgrade pip wheel
# echo "Installing requirements.txt + test dependencies..."
# python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint>=53.0,!=57.0,!=60.0"
# python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint>=53.0,!=57.0,!=60.0,<=61.2"
# - name: Generate Valid Tests
# run: |
# make yestests || true
Expand Down
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def setUp(self):

def test_text_content(self):
def norm(t):
return re.sub(r'\s+', '', t).strip()
return re.sub(r'\s+', ' ', t).strip()
#
text = norm('\n'.join( p.text for p in self.pdfxml.xpath('.//Page/text') ))
for e in self.root.xpath('./middle//*'):
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ deps =
decorator
dict2xml
pypdf>=4.1.0
weasyprint>=53.0,!=57.0,!=60.0
weasyprint>=53.0,!=57.0,!=60.0,<=61.2

0 comments on commit 18b7023

Please sign in to comment.