Skip to content

Commit e8e4a69

Browse files
authored
Merge branch 'master' into cohensauw-patch-1
2 parents 2d38a6b + 2e13661 commit e8e4a69

File tree

97 files changed

+7914
-843
lines changed

Some content is hidden

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

97 files changed

+7914
-843
lines changed

source/_static/UWPCE_logo_W.png

9.49 KB
Loading

source/_static/UWPCE_logo_full.png

24.9 KB
Loading

source/class_schedule/lesson03.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ Exercises:
2727
../exercises/slicing.rst
2828
../exercises/list_lab.rst
2929
../exercises/string_formatting.rst
30-
../exercises/mailroom-part1.rst
31-
../exercises/mailroom_tutorial.rst
30+
../exercises/mailroom/mailroom.rst
31+
../exercises/mailroom/mailroom_tutorial.rst
3232

3333
Optional
3434
--------

source/class_schedule/lesson04.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ Exercises:
3636

3737
../exercises/exceptions_lab.rst
3838
../exercises/except_exercise.rst
39-
../exercises/unit_testing.rst
39+
../exercises/unit_testing/unit_testing.rst
4040
../exercises/dict_lab.rst
41-
../exercises/mailroom-part2.rst
42-
../exercises/kata_fourteen.rst
41+
../exercises/mailroom/mailroom_with_dicts.rst
42+
../exercises/trigrams/trigrams.rst
43+
44+

source/class_schedule/lesson05.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@ Exercises:
2828
../exercises/exceptions_lab.rst
2929
../exercises/except_exercise.rst
3030
../exercises/comprehensions_lab.rst
31-
../exercises/mailroom-part3.rst
31+
../exercises/mailroom/mailroom_with_exceptions.rst
32+
../exercises/mailroom/mailroom_with_files.rst
33+
3234

source/class_schedule/lesson06.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Exercises:
3131
:maxdepth: 1
3232

3333
../exercises/args_kwargs_lab.rst
34-
../exercises/mailroom-part4.rst
34+
../exercises/mailroom/mailroom_with_tests.rst
3535

36-
**NOTE:** you will find that most introductions to unit testing with Python use the built in ``unittest`` module. However, it is a bit heavyweight, and requires some knowledge of OOP -- classes, etc. So we'll be using pytest in this class:
36+
**NOTE:** you will find that most introductions to unit testing with Python use the built in ``unittest`` module. However, it is a bit heavyweight, and requires some knowledge of OOP -- classes, etc. So we use pytest in this class:
3737
http://doc.pytest.org/en/latest/. But the principles of testing are the same.

source/class_schedule/lesson08.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Exercises:
3838
.. toctree::
3939
:maxdepth: 1
4040

41-
../exercises/circle_class.rst
41+
../exercises/circle/circle_class.rst
4242

4343
Optional Exercise:
4444
------------------

source/class_schedule/lesson09.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ Exercises:
3939
.. toctree::
4040
:maxdepth: 1
4141

42-
../exercises/mailroom-oo.rst
42+
../exercises/mailroom/mailroom-oo.rst

source/examples/testing/test_random_pytest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_shuffle():
3333
"""
3434
seq = list(range(10))
3535
random.shuffle(seq)
36-
# seq.sort() # If you comment this out, it will fail, so you can see output
36+
seq.sort() # If you comment this out, it will fail, so you can see output
3737
print("seq:", seq) # only see output if it fails
3838
assert seq == list(range(10))
3939

@@ -45,6 +45,7 @@ def test_shuffle_immutable():
4545
with pytest.raises(TypeError):
4646
random.shuffle((1, 2, 3))
4747

48+
4849
def test_sample_too_large():
4950
"""
5051
Trying to sample more than exist should raise an error

source/examples/wikidef.zip

10.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)