Book-TDD-Web-Dev-Python
Book-TDD-Web-Dev-Python copied to clipboard
Book - TDD web dev with Python
Running on Django v1.11.25 ... ``` django-admin.py startproject superlists . ``` ... opens the file `django-admin.py` Whereas running ... ``` django-admin startproject superlists . ``` ... runs as expected generating...
Snyk has created this PR to fix one or more vulnerable packages in the `pip` dependencies of this project. #### Changes included in this PR - Changes to the following...
With Python3, the URL is updated to https://diveintopython3.problemsolving.io/.
Hi, The section: 'What to do next' -> 'Test for Graceful Degradation' mentions **Persona**. At first, I figured I missed something somewhere but after a quick google search I realized...
Instead of importing ```python from django.core.urlresolvers import reverse ``` we could import ```python from django.urls import reverse ``` Importing from `urlresolvers` is only kept for backwards compatibility, and it isn't...
In ch07l006, there is an useless assertion that sneaked in. Basically, that test: ```python self.assertNotIn('make a fly', page_text) ``` is useless because in `test_multiple_users_can_start_lists_at_different_urls` Edith did not create a second...
In `ch11l032`, this is introduced, to test the HTML5 validation: ```python self.wait_for(lambda: self.browser.find_elements_by_css_selector( '#id_text:invalid' )) ``` However, it isn't testing anything. Because we are using `find_elementS_by_css_selector(...)` if the element is...
It's a bit confusing when you write: ```python item.save() item.full_clean() ``` while the name of the tests is `test_cannot_save_empty_list_item` Because in the end... _the item is saved_. It can be...
In ```bash elspeth@server:$ set -a; source .env; set +a ``` It would be nice to explain the `set -a;` & `set +a`. I found out by googling (https://stackoverflow.com/a/43267603/4490991)
In _Chapter 23: Test Isolation, and “Listening to Your Tests”_ in the first code snippter after _Moving Down to the Forms Layer_ it says: class NewListForm(models.Form): Which was irritating, as...