Skip to content

Commit 69cb417

Browse files
committed
Update README with __init__.py
1 parent 4201616 commit 69cb417

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,20 @@ Directory layout
6969
.. code-block:: bash
7070
7171
anyDirectory/
72+
Challenge1/__init__.py
7273
Challenge1/challenge.py
7374
Challenge1/test.py
75+
Challenge2/__init__.py
7476
Challenge2/challenge.py
7577
Challenge2/test.py
7678
... more challenges ...
7779
7880
The names `Challenge1` and `Challenge2` are just placeholders for the names you choose during scaffolding.
7981

82+
.. hint::
83+
84+
The files `__init__.py` are empty. They help unittest tools like *nosetest* to locate the test files.
85+
8086
Challenge runner
8187
================
8288

@@ -105,6 +111,7 @@ You now find the files:
105111
.. code-block:: bash
106112
107113
myChallenges/
114+
Challenge3/__init__.py
108115
Challenge3/challenge.py
109116
Challenge3/test.py
110117
@@ -113,11 +120,12 @@ Check it's working by running the unit test case.
113120
.. code-block:: bash
114121
115122
prompt> challenge --unittest Challenge3
116-
...
123+
.sss.
117124
----------------------------------------------------------------------
118-
Ran 1 tests in 0.001s
125+
Ran 5 tests in 0.006s
126+
127+
OK (skipped=3)
119128
120-
OK
121129
122130
Run <sample> from the class file
123131
--------------------------------

0 commit comments

Comments
 (0)