Skip to content

Commit b3b8e5d

Browse files
committed
fixed typos in test install...
1 parent c246d41 commit b3b8e5d

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

Sources/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ In This Collection
2323

2424
weak_references
2525
persistance_serialization
26+
where_to_put_tests
2627

2728
.. rst-class:: credit
2829

Sources/source/persistance_serialization.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,15 +579,15 @@ http://xkcd.com/327/
579579
DB-API
580580
------
581581

582-
The DB-API spec (PEP 249) is a specification for interaction between Python and Relational Databases.}
582+
The DB-API spec (PEP 249) is a specification for interaction between Python and Relational Databases.
583583

584584
Support for a large number of third-party Database drivers:
585585

586586
* MySQL
587587
* PostgreSQL
588588
* Oracle
589589
* MSSQL (?)
590-
* .....
590+
* ...
591591

592592
http://www.python.org/dev/peps/pep-0249}
593593

Sources/source/where_to_put_tests.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ where to put tests?
55
TL; DR
66
======
77

8-
Too Long; Didn't Read:
98

109
If your package and test code are small and self contained, put the tests in with the package.
1110

12-
IF the tests are large or complex, or require reading/writting files, or significatn samepl data, put yoru tests outside the package.
11+
If the tests are large or complex, or require reading/writing files, or significant sample data, put your tests outside the package.
1312

1413
Test system recommendations
1514
----------------------------
@@ -18,14 +17,17 @@ Test system recommendations
1817

1918
https://pytest.org/latest/goodpractises.html
2019

21-
I need to add links for nose and unittest....
20+
I need to add links for ``nose`` and ``unittest``....
2221

2322

2423
Two Options
2524
-----------
2625

27-
In Python packaging, there seems to be no consensus on where you should put your test suite.
26+
In Python packaging, there seems is no consensus on where you should put your test suite. This thread:
2827

28+
https://mail.python.org/pipermail/distutils-sig/2015-October/027003.html
29+
30+
makes that clear :-)
2931

3032
There are essentially two recommended approaches:
3133

@@ -37,7 +39,7 @@ to do that, you need to install your package under development in "develop" mode
3739

3840
python setup.py develop
3941

40-
or
42+
or::
4143

4244
pip install -r ./
4345

@@ -61,7 +63,7 @@ for recommendations.
6163
Self contained
6264
--------------
6365

64-
The advantage of keeping test code self-contained is that you can have a large suite of tests with sample data and who knows what, and it won't bloat and complicate the installed package (and test code can write to the test dirs, etc..... Also, you can then run the test suite against an installed version that may not be exactly the same as the current live code.
66+
The advantage of keeping test code self-contained is that you can have a large suite of tests with sample data and who knows what, and it won't bloat and complicate the installed package (and test code can write to the test dirs, etc. Also, you can then run the test suite against an installed version that may not be exactly the same as the current live code.
6567

6668
Sub-package
6769
-----------

0 commit comments

Comments
 (0)