Skip to content

Commit ba6aa21

Browse files
committed
Update docs: py.test -> pytest
Renamed testDestroyCascade.py -> test_destroy_cascade.py. Upgrade Sphinx.
1 parent ecd2d7c commit ba6aa21

File tree

308 files changed

+1921
-779
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

308 files changed

+1921
-779
lines changed

devel/Authors.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
<script type="text/javascript" src="_static/underscore.js"></script>
2626
<script type="text/javascript" src="_static/doctools.js"></script>
2727
<script type="text/javascript" src="_static/bizstyle.js"></script>
28+
<link rel="index" title="Index" href="genindex.html" />
29+
<link rel="search" title="Search" href="search.html" />
2830
<link rel="top" title="SQLObject 3.2.0a0 documentation" href="index.html" />
2931
<link rel="next" title="TODO" href="TODO.html" />
3032
<link rel="prev" title="SQLObject Developer Guide" href="DeveloperGuide.html" />
@@ -150,7 +152,7 @@ <h3>Navigation</h3>
150152
</div>
151153
<div class="footer" role="contentinfo">
152154
&#169; Copyright 2004-2016, Ian Bicking and contributors.
153-
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.6.
155+
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.8.
154156
</div>
155157
</body>
156158
</html>

devel/DeveloperGuide.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
<script type="text/javascript" src="_static/underscore.js"></script>
2626
<script type="text/javascript" src="_static/doctools.js"></script>
2727
<script type="text/javascript" src="_static/bizstyle.js"></script>
28+
<link rel="index" title="Index" href="genindex.html" />
29+
<link rel="search" title="Search" href="search.html" />
2830
<link rel="top" title="SQLObject 3.2.0a0 documentation" href="index.html" />
2931
<link rel="next" title="Authors" href="Authors.html" />
3032
<link rel="prev" title="Views and SQLObjects" href="Views.html" />
@@ -308,7 +310,7 @@ <h2>Style Guide<a class="headerlink" href="#style-guide" title="Permalink to thi
308310
<h2>Testing<a class="headerlink" href="#testing" title="Permalink to this headline"></a></h2>
309311
<p>Tests are important. Tests keep everything from falling apart. All
310312
new additions should have tests.</p>
311-
<p>Testing uses py.test, an alternative to <code class="docutils literal"><span class="pre">unittest</span></code>. It is available
313+
<p>Testing uses pytest, an alternative to <code class="docutils literal"><span class="pre">unittest</span></code>. It is available
312314
at <a class="reference external" href="http://pytest.org/">http://pytest.org/</a> and <a class="reference external" href="https://pypi.python.org/pypi/pytest">https://pypi.python.org/pypi/pytest</a>. Read its
313315
<a class="reference external" href="http://docs.pytest.org/en/latest/getting-started.html">getting started</a> document for more.</p>
314316
<p>To actually run the test, you have to give it a database to connect to.
@@ -318,15 +320,15 @@ <h2>Testing<a class="headerlink" href="#testing" title="Permalink to this headli
318320
<p>All the tests are modules in <code class="docutils literal"><span class="pre">sqlobject/tests</span></code>. Each module tests
319321
one kind of feature, more or less. If you are testing a module, call
320322
the test module <code class="docutils literal"><span class="pre">tests/test_modulename.py</span></code> &#8211; only modules that
321-
start with <code class="docutils literal"><span class="pre">test_</span></code> will be picked up by py.test.</p>
323+
start with <code class="docutils literal"><span class="pre">test_</span></code> will be picked up by pytest.</p>
322324
<p>The &#8220;framework&#8221; for testing is in <code class="docutils literal"><span class="pre">tests/dbtest</span></code>. There&#8217;s a couple of
323325
important functions:</p>
324326
<p><code class="docutils literal"><span class="pre">setupClass(soClass)</span></code> creates the tables for the class. It tries to
325327
avoid recreating tables if not necessary.</p>
326328
<p><code class="docutils literal"><span class="pre">supports(featureName)</span></code> checks if the database backend supports the
327329
named feature. What backends support what is defined at the top of
328330
<code class="docutils literal"><span class="pre">dbtest</span></code>.</p>
329-
<p>If you <code class="docutils literal"><span class="pre">import</span> <span class="pre">*</span></code> you&#8217;ll also get py.test&#8217;s version of <a class="reference external" href="http://docs.pytest.org/en/latest/assert.html#assertions-about-expected-exceptions">raises</a>, an
331+
<p>If you <code class="docutils literal"><span class="pre">import</span> <span class="pre">*</span></code> you&#8217;ll also get pytest&#8217;s version of <a class="reference external" href="http://docs.pytest.org/en/latest/assert.html#assertions-about-expected-exceptions">raises</a>, an
330332
<code class="docutils literal"><span class="pre">inserts</span></code> function that can create instances for you, and a couple
331333
miscellaneous functions.</p>
332334
<p>If you submit a patch or implement a feature without a test, we&#8217;ll be
@@ -382,7 +384,7 @@ <h3>Navigation</h3>
382384
</div>
383385
<div class="footer" role="contentinfo">
384386
&#169; Copyright 2004-2016, Ian Bicking and contributors.
385-
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.6.
387+
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.8.
386388
</div>
387389
</body>
388390
</html>

devel/FAQ.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
<script type="text/javascript" src="_static/underscore.js"></script>
2626
<script type="text/javascript" src="_static/doctools.js"></script>
2727
<script type="text/javascript" src="_static/bizstyle.js"></script>
28+
<link rel="index" title="Index" href="genindex.html" />
29+
<link rel="search" title="Search" href="search.html" />
2830
<link rel="top" title="SQLObject 3.2.0a0 documentation" href="index.html" />
2931
<link rel="next" title="SQLBuilder" href="SQLBuilder.html" />
3032
<link rel="prev" title="SQLObject" href="SQLObject.html" />
@@ -702,7 +704,7 @@ <h3>Navigation</h3>
702704
</div>
703705
<div class="footer" role="contentinfo">
704706
&#169; Copyright 2004-2016, Ian Bicking and contributors.
705-
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.6.
707+
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.8.
706708
</div>
707709
</body>
708710
</html>

devel/Inheritance.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
<script type="text/javascript" src="_static/underscore.js"></script>
2626
<script type="text/javascript" src="_static/doctools.js"></script>
2727
<script type="text/javascript" src="_static/bizstyle.js"></script>
28+
<link rel="index" title="Index" href="genindex.html" />
29+
<link rel="search" title="Search" href="search.html" />
2830
<link rel="top" title="SQLObject 3.2.0a0 documentation" href="index.html" />
2931
<link rel="next" title="Versioning" href="Versioning.html" />
3032
<link rel="prev" title="The sqlobject-admin Tool" href="sqlobject-admin.html" />
@@ -445,7 +447,7 @@ <h3>Navigation</h3>
445447
</div>
446448
<div class="footer" role="contentinfo">
447449
&#169; Copyright 2004-2016, Ian Bicking and contributors.
448-
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.6.
450+
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.8.
449451
</div>
450452
</body>
451453
</html>

devel/News.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
<script type="text/javascript" src="_static/underscore.js"></script>
2626
<script type="text/javascript" src="_static/doctools.js"></script>
2727
<script type="text/javascript" src="_static/bizstyle.js"></script>
28+
<link rel="index" title="Index" href="genindex.html" />
29+
<link rel="search" title="Search" href="search.html" />
2830
<link rel="top" title="SQLObject 3.2.0a0 documentation" href="index.html" />
2931
<link rel="next" title="SQLObject and Python 3" href="Python3.html" />
3032
<link rel="prev" title="SQLObject Links" href="links.html" />
@@ -146,15 +148,17 @@ <h1>News<a class="headerlink" href="#news" title="Permalink to this headline">¶
146148
<h3>Documentation<a class="headerlink" href="#documentation" title="Permalink to this headline"></a></h3>
147149
<ul class="simple">
148150
<li>The docs are now generated with Sphinx.</li>
151+
<li>Move docs/LICENSE to the top-level directory so that Github recognizes it.</li>
149152
</ul>
150153
</div>
151154
<div class="section" id="tests">
152155
<h3>Tests<a class="headerlink" href="#tests" title="Permalink to this headline"></a></h3>
153156
<ul class="simple">
154-
<li>Great Renaming: fix py.test warnings by renaming TestXXX classes
155-
to SOTestXXX to prevent py.test to recognize them as test classes.</li>
156-
<li>Fix py.test warnings by converting yield test to plain calls:
157-
yield test were deprecated in py.test.</li>
157+
<li>Rename py.test -&gt; pytest in tests and docs.</li>
158+
<li>Great Renaming: fix pytest warnings by renaming TestXXX classes
159+
to SOTestXXX to prevent pytest to recognize them as test classes.</li>
160+
<li>Fix pytest warnings by converting yield test to plain calls:
161+
yield test were deprecated in pytest.</li>
158162
<li>Tests are now run at CIs with python3.5.</li>
159163
<li>Tests are split at Circle CI in 4 parallel containers.</li>
160164
<li>Fix a problem in tests related to test order when running on PostgreSQL.</li>
@@ -263,7 +267,7 @@ <h3>Navigation</h3>
263267
</div>
264268
<div class="footer" role="contentinfo">
265269
&#169; Copyright 2004-2016, Ian Bicking and contributors.
266-
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.6.
270+
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.8.
267271
</div>
268272
</body>
269273
</html>

devel/News1.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
<script type="text/javascript" src="_static/underscore.js"></script>
2626
<script type="text/javascript" src="_static/doctools.js"></script>
2727
<script type="text/javascript" src="_static/bizstyle.js"></script>
28+
<link rel="index" title="Index" href="genindex.html" />
29+
<link rel="search" title="Search" href="search.html" />
2830
<link rel="top" title="SQLObject 3.2.0a0 documentation" href="index.html" />
2931
<meta name="viewport" content="width=device-width,initial-scale=1.0">
3032
<!--[if lt IE 9]>
@@ -609,7 +611,7 @@ <h3>Navigation</h3>
609611
</div>
610612
<div class="footer" role="contentinfo">
611613
&#169; Copyright 2004-2016, Ian Bicking and contributors.
612-
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.6.
614+
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.8.
613615
</div>
614616
</body>
615617
</html>

devel/News2.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
<script type="text/javascript" src="_static/underscore.js"></script>
2626
<script type="text/javascript" src="_static/doctools.js"></script>
2727
<script type="text/javascript" src="_static/bizstyle.js"></script>
28+
<link rel="index" title="Index" href="genindex.html" />
29+
<link rel="search" title="Search" href="search.html" />
2830
<link rel="top" title="SQLObject 3.2.0a0 documentation" href="index.html" />
2931
<meta name="viewport" content="width=device-width,initial-scale=1.0">
3032
<!--[if lt IE 9]>
@@ -756,7 +758,7 @@ <h3>Navigation</h3>
756758
</div>
757759
<div class="footer" role="contentinfo">
758760
&#169; Copyright 2004-2016, Ian Bicking and contributors.
759-
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.6.
761+
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.8.
760762
</div>
761763
</body>
762764
</html>

devel/News3.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
<script type="text/javascript" src="_static/underscore.js"></script>
2626
<script type="text/javascript" src="_static/doctools.js"></script>
2727
<script type="text/javascript" src="_static/bizstyle.js"></script>
28+
<link rel="index" title="Index" href="genindex.html" />
29+
<link rel="search" title="Search" href="search.html" />
2830
<link rel="top" title="SQLObject 3.2.0a0 documentation" href="index.html" />
2931
<meta name="viewport" content="width=device-width,initial-scale=1.0">
3032
<!--[if lt IE 9]>
@@ -513,7 +515,7 @@ <h3>Navigation</h3>
513515
</div>
514516
<div class="footer" role="contentinfo">
515517
&#169; Copyright 2004-2016, Ian Bicking and contributors.
516-
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.6.
518+
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.8.
517519
</div>
518520
</body>
519521
</html>

devel/News4.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
<script type="text/javascript" src="_static/underscore.js"></script>
2626
<script type="text/javascript" src="_static/doctools.js"></script>
2727
<script type="text/javascript" src="_static/bizstyle.js"></script>
28+
<link rel="index" title="Index" href="genindex.html" />
29+
<link rel="search" title="Search" href="search.html" />
2830
<link rel="top" title="SQLObject 3.2.0a0 documentation" href="index.html" />
2931
<meta name="viewport" content="width=device-width,initial-scale=1.0">
3032
<!--[if lt IE 9]>
@@ -469,7 +471,7 @@ <h3>Navigation</h3>
469471
</div>
470472
<div class="footer" role="contentinfo">
471473
&#169; Copyright 2004-2016, Ian Bicking and contributors.
472-
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.6.
474+
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.8.
473475
</div>
474476
</body>
475477
</html>

devel/News5.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
<script type="text/javascript" src="_static/underscore.js"></script>
2626
<script type="text/javascript" src="_static/doctools.js"></script>
2727
<script type="text/javascript" src="_static/bizstyle.js"></script>
28+
<link rel="index" title="Index" href="genindex.html" />
29+
<link rel="search" title="Search" href="search.html" />
2830
<link rel="top" title="SQLObject 3.2.0a0 documentation" href="index.html" />
2931
<meta name="viewport" content="width=device-width,initial-scale=1.0">
3032
<!--[if lt IE 9]>
@@ -907,7 +909,7 @@ <h3>Navigation</h3>
907909
</div>
908910
<div class="footer" role="contentinfo">
909911
&#169; Copyright 2004-2016, Ian Bicking and contributors.
910-
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.6.
912+
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.8.
911913
</div>
912914
</body>
913915
</html>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy