Skip to content

Conversation

@kreuzberger
Copy link
Contributor

First implementation of a tox based test framework, trying to handle issues #112 and #120 in current versions

@kreuzberger
Copy link
Contributor Author

kreuzberger commented Nov 25, 2025

Currently there is no github action to perform tests, nor are lint tests etc working. The only tests working are e.g.
tox -e py313-sphinx82
which will lead to errors due to #112.

E       assert 16 == 0
E        +  where 16 = len(["ERROR: Content discarded: target points to undefined anchor ('url', ('internal', 'document-chapter1#section-1-1'))",...ion-1-1 for internal URI reference', 'ERROR: No anchor #document-chapter1#section-1-1 for internal URI reference', ...])

@kreuzberger
Copy link
Contributor Author

for #120 and sphinx 7.4 the tests fails cause the links associcated with Chapter 1 should lead to page 4 and the Chapter 2 links to page 5. In the current version they links to page 3/4.

      text = extract_pdf_text(pdf_path)
    
>       assert """
    Table of Contents
    
    Contents:
    
    Chapter 1: Getting Started
    
    • Section 1.1
    • Section 1.2
    
    Chapter 2: Advanced Topics
    
    • Section 2.1
    • Section 2.2
    
    4
    
    4
    
    4
    
    5
    
    5
    
    5
    """ in text

@kreuzberger
Copy link
Contributor Author

@ubmarco any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant