Ignore:
Timestamp:
10/16/2022 09:14:25 PM (21 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/xf86-video-removal
Children:
6e98a080
Parents:
ef6402e
Message:

Add test instructions to new python modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/python-dependencies/sphinxcontrib-jsmath.xml

    ref6402e r74434cc  
    6868      <bridgehead renderas="sect4">Sphinxcontrib-jsmath Dependencies</bridgehead>
    6969
    70       <bridgehead renderas="sect5">Optional</bridgehead>
     70      <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
    7171      <para role="optional">
    72         <xref linkend="pytest"/> (for tests),
    73         <ulink url="https://pypi.org/project/flake8/">
    74           flake8
    75         </ulink>, and
    76         <ulink url="https://pypi.org/project/mypy/">
    77           mypy
    78         </ulink>
     72        <xref linkend="pytest"/>
    7973      </para>
    8074
     
    8983
    9084    <para>
    91       This package does not come with a test suite.
    92     </para>
    93 
    94     <para>
    9585      Now, as the <systemitem class="username">root</systemitem> user:
    9686    </para>
    9787
    9888<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user sphinxcontrib-jsmath</userinput></screen>
     89
     90    <para>
     91      The installation can be tested with the following commands:
     92    </para>
     93
     94<screen remap="test"><userinput>sed -i 's/text()/read_&amp;/' tests/test_jsmath.py &amp;&amp;
     95pytest</userinput></screen>
     96
     97    <para>
     98      the <command>sed ...</command> command is needed because of a change
     99      in <application>Sphinx</application> API for versions greater than
     100      5.0.
     101    </para>
    99102
    100103    </sect3>
Note: See TracChangeset for help on using the changeset viewer.