source: general/prog/python-modules/pytest.xml@ 3a001df8

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 3a001df8 was 8f7f93b, checked in by Douglas R. Reno <renodr@…>, 12 months ago

Update to pytest-7.4.0 (Python Module)

  • Property mode set to 100644
File size: 5.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect2 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../../general.ent">
5 %general-entities;
6
7 <!ENTITY pytest-download-http "https://files.pythonhosted.org/packages/source/p/pytest/pytest-&pytest-version;.tar.gz">
8 <!ENTITY pytest-download-ftp " ">
9 <!ENTITY pytest-md5sum "&pytest-md5sum;">
10 <!ENTITY pytest-size "1.3 MB">
11 <!ENTITY pytest-buildsize "8.2 MB (add 44 MB for tests)">
12 <!ENTITY pytest-time "less than 0.1 SBU (1.0 SBU for tests)">
13]>
14
15 <sect2 id="pytest" xreflabel="pytest-&pytest-version;">
16
17 <title>Pytest-&pytest-version;</title>
18
19 <indexterm zone="pytest">
20 <primary sortas="a-pytest">pytest</primary>
21 </indexterm>
22
23 <sect3 role="package">
24 <title>Introduction to Pytest Module</title>
25
26 <para>
27 The <application>Pytest</application> framework makes it easy to
28 write small, readable tests, and can scale to support complex
29 functional testing for applications and libraries.
30 </para>
31
32 &lfs113_checked;
33
34 <bridgehead renderas="sect4">Package Information</bridgehead>
35 <itemizedlist spacing="compact">
36 <listitem>
37 <para>
38 Download (HTTP): <ulink url="&pytest-download-http;"/>
39 </para>
40 </listitem>
41 <listitem>
42 <para>
43 Download (FTP): <ulink url="&pytest-download-ftp;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download MD5 sum: &pytest-md5sum;
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download size: &pytest-size;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Estimated disk space required: &pytest-buildsize;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated build time: &pytest-time;
64 </para>
65 </listitem>
66 </itemizedlist>
67
68 <bridgehead renderas="sect4">Pytest Dependencies</bridgehead>
69
70 <bridgehead renderas="sect5">Required</bridgehead>
71 <para role="required">
72 <xref linkend="iniconfig"/>,
73 <xref linkend="packaging"/>,
74 <xref linkend="pluggy"/>, and
75 <xref linkend="py"/>
76 </para>
77
78 <bridgehead renderas="sect5">Recommended</bridgehead>
79 <para role="recommended">
80 <xref linkend="setuptools_scm"/>
81 </para>
82
83 <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
84 <para role="optional">
85 <xref linkend="pygments"/>,
86 <xref linkend="requests"/>,
87 <ulink url="https://pypi.org/project/argcomplete/">argcomplete</ulink>,
88 <ulink url="https://pypi.org/project/elementpath/">elementpath</ulink>,
89 <ulink url="https://pypi.org/project/hypothesis/">hypothesis</ulink>,
90 <ulink url="https://pypi.org/project/mock/">mock</ulink>,
91 <ulink url="https://pypi.org/project/nose/">nose</ulink>,
92 <ulink url="https://pypi.org/project/sortedcontainers/">sortedcontainers</ulink>, and
93 <ulink url="https://pypi.org/project/xmlschema/">xmlschema</ulink>
94 </para>
95
96 </sect3>
97
98 <sect3 role="installation">
99 <title>Installation of Pytest</title>
100
101 <para> Build the module: </para>
102
103<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
104
105 <para>
106 Now, as the <systemitem class="username">root</systemitem> user:
107 </para>
108
109<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user pytest</userinput></screen>
110
111 <para>
112 The installation can be tested with the following commands:
113 </para>
114
115<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
116source testenv/bin/activate &amp;&amp;
117pip3 install pytest[testing] &amp;&amp;
118python3 /usr/bin/pytest<!-- no && because of a possible error -->
119deactivate</userinput></screen>
120
121 <para>
122 A few tests (11 of 3429) are known to fail.
123 </para>
124 </sect3>
125
126 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
127 href="../../../xincludes/pip3-cmd-explain.xml"/>
128
129 <sect3 role="content">
130 <title>Contents</title>
131
132 <segmentedlist>
133 <segtitle>Installed Programs</segtitle>
134 <segtitle>Installed Libraries</segtitle>
135 <segtitle>Installed Directories</segtitle>
136
137 <seglistitem>
138 <seg>
139 pytest and py.test (different files but with same content)
140 </seg>
141 <seg>None</seg>
142 <seg>
143 /usr/lib/python&python3-majorver;/site-packages/_pytest,
144 /usr/lib/python&python3-majorver;/site-packages/pytest, and
145 /usr/lib/python&python3-majorver;/site-packages/pytest-&pytest-version;.dist-info
146 </seg>
147 </seglistitem>
148 </segmentedlist>
149
150 <variablelist>
151 <bridgehead renderas="sect5">Short Descriptions</bridgehead>
152 <?dbfo list-presentation="list"?>
153 <?dbhtml list-presentation="table"?>
154
155 <varlistentry id="pytest-prog">
156 <term><command>pytest</command></term>
157 <listitem>
158 <para>
159 sets up, manages, and/or runs test in python module source
160 directories
161 </para>
162 <indexterm zone="pytest pytest-prog">
163 <primary sortas="b-pytest-prog">pytest</primary>
164 </indexterm>
165 </listitem>
166 </varlistentry>
167
168 </variablelist>
169
170 </sect3>
171
172 </sect2>
Note: See TracBrowser for help on using the repository browser.