You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: chapter_03_unit_test_first_view.asciidoc
+3-3
Original file line number
Diff line number
Diff line change
@@ -282,7 +282,7 @@ and the view part is actually provided by the templates,
282
282
but you can see the general idea is there!
283
283
284
284
If you're interested, you can look up the finer points of the discussion
285
-
https://docs.djangoproject.com/en/5.1/faq/general/#django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names[in the Django FAQs].
285
+
https://docs.djangoproject.com/en/5.2/faq/general/#django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names[in the Django FAQs].
286
286
287
287
Irrespective of any of that, as with any web server, Django's main job is to
288
288
decide what to do when a user asks for a particular URL on our site.
@@ -692,7 +692,7 @@ How can we write a test for URL resolution?
692
692
At the moment we just test the view function directly by importing it and calling it.
693
693
But we want to test more layers of the Django stack.
694
694
Django, like most web frameworks, supplies a tool for doing just that, called the
695
-
https://docs.djangoproject.com/en/5.1/topics/testing/tools/#the-test-client[Django Test Client].
695
+
https://docs.djangoproject.com/en/5.2/topics/testing/tools/#the-test-client[Django Test Client].
696
696
697
697
// CSANAD: it might be a little confusing first why we add a _unit_ test, considering this second
698
698
// test case is closer to a user's point of view. We could point out this to be one example
@@ -864,7 +864,7 @@ Let's go take a look:
864
864
URL configuration for superlists project.
865
865
866
866
The `urlpatterns` list routes URLs to views. For more information please see:
the Django developers have made an even more magical test class
731
731
called `StaticLiveServerTestCase`
732
-
(see https://docs.djangoproject.com/en/5.1/ref/contrib/staticfiles/#django.contrib.staticfiles.testing.StaticLiveServerTestCase[the docs]).
732
+
(see https://docs.djangoproject.com/en/5.2/ref/contrib/staticfiles/#django.contrib.staticfiles.testing.StaticLiveServerTestCase[the docs]).
733
733
734
734
// JAN: Maybe you could mention that StaticLiveServerTestCase inherits from LiveServerTestCase - so all previous should work + static files. After reading the name, I imagined StaticLiveServerTestCase as some special test class for testing only static-related stuff
735
735
@@ -1010,7 +1010,7 @@ making it relative to the location of the project base directory:
0 commit comments