@@ -216,7 +216,7 @@ whether we're running against the staging server or not.
216
216
Let's save the `staging_server` variable on `self` in _base.py_:
217
217
218
218
[role="sourcecode"]
219
- .functional_tests/base.py (ch21l009)
219
+ .src/ functional_tests/base.py (ch21l009)
220
220
====
221
221
[source,python]
222
222
----
@@ -233,7 +233,7 @@ email server, using the horrifically tortuous Python standard library POP3
233
233
client:
234
234
235
235
[role="sourcecode"]
236
- .functional_tests/test_login.py (ch21l010)
236
+ .src/ functional_tests/test_login.py (ch21l010)
237
237
====
238
238
[source,python]
239
239
----
@@ -298,7 +298,7 @@ local and staging tests:
298
298
299
299
300
300
[role="sourcecode small-code"]
301
- .functional_tests/test_login.py (ch21l011-1)
301
+ .src/ functional_tests/test_login.py (ch21l011-1)
302
302
====
303
303
[source,diff]
304
304
----
@@ -341,7 +341,7 @@ And then modifications involving using that variable and calling our new helper
341
341
function:
342
342
343
343
[role="sourcecode small-code"]
344
- .functional_tests/test_login.py (ch21l011-2)
344
+ .src/ functional_tests/test_login.py (ch21l011-2)
345
345
====
346
346
[source,diff]
347
347
----
@@ -460,17 +460,17 @@ will do all that path mangling for you. They live in a folder called
460
460
461
461
[subs=""]
462
462
----
463
- $ <strong>mkdir -p functional_tests/management/commands</strong>
464
- $ <strong>touch functional_tests/management/__init__.py</strong>
465
- $ <strong>touch functional_tests/management/commands/__init__.py</strong>
463
+ $ <strong>mkdir -p src/ functional_tests/management/commands</strong>
464
+ $ <strong>touch src/ functional_tests/management/__init__.py</strong>
465
+ $ <strong>touch src/ functional_tests/management/commands/__init__.py</strong>
466
466
----
467
467
468
468
The boilerplate in a management command is a class that inherits from
469
469
`django.core.management.BaseCommand`, and that defines a method called
470
470
`handle`:
471
471
472
472
[role="sourcecode"]
473
- .functional_tests/management/commands/create_session.py
473
+ .src/ functional_tests/management/commands/create_session.py
474
474
====
475
475
[source,python]
476
476
----
@@ -555,7 +555,7 @@ when we're on the local server,
555
555
and make it run the management command on the staging server if we're on that:
556
556
557
557
[role="sourcecode"]
558
- .functional_tests/test_my_lists.py (ch21l016)
558
+ .src/ functional_tests/test_my_lists.py (ch21l016)
559
559
====
560
560
[source,python]
561
561
----
@@ -590,7 +590,7 @@ when we populate `self.test_server`:
590
590
591
591
592
592
[role="sourcecode"]
593
- .functional_tests/base.py (ch21l017)
593
+ .src/ functional_tests/base.py (ch21l017)
594
594
====
595
595
[source,python]
596
596
----
@@ -626,7 +626,7 @@ just need to let it know the "host string" you're connecting to:
626
626
627
627
628
628
[role="sourcecode"]
629
- .functional_tests/server_tools.py (ch18l018)
629
+ .src/ functional_tests/server_tools.py (ch18l018)
630
630
====
631
631
[source,python]
632
632
----
@@ -662,7 +662,7 @@ cryptographically valid for the server:
662
662
663
663
664
664
[role="sourcecode small-code"]
665
- .functional_tests/server_tools.py (ch18l019)
665
+ .src/ functional_tests/server_tools.py (ch18l019)
666
666
====
667
667
[source,python]
668
668
----
0 commit comments