Skip to content

Commit ede1247

Browse files
committed
tiny start on 6 explicit waits
1 parent ff3182d commit ede1247

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

chapter_explicit_waits_1.asciidoc

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -85,29 +85,28 @@ At this point your directory tree should look like this:
8585
│   ├── __init__.py
8686
│   └── tests.py
8787
├── lists
88+
│   ├── __init__.py
89+
│   ├── __pycache__
8890
│   ├── admin.py
8991
│   ├── apps.py
90-
│   ├── __init__.py
9192
│   ├── migrations
9293
│   │   ├── 0001_initial.py
9394
│   │   ├── 0002_item_text.py
9495
│   │   ├── __init__.py
9596
│   │   └── __pycache__
9697
│   ├── models.py
97-
│   ├── __pycache__
9898
│   ├── templates
9999
│   │   └── home.html
100100
│   ├── tests.py
101101
│   └── views.py
102102
├── manage.py
103-
├── superlists
104-
│ ├── __init__.py
105-
│ ├── __pycache__
106-
│ ├── settings.py
107-
│ ├── urls.py
108-
│ └── wsgi.py
109-
└── virtualenv
110-
├── [...]
103+
└── superlists
104+
├── __init__.py
105+
├── __pycache__
106+
├── asgi.py
107+
├── settings.py
108+
├── urls.py
109+
└── wsgi.py
111110
----
112111

113112
'functional_tests.py' is gone, and has turned into 'functional_tests/tests.py'.
@@ -150,7 +149,7 @@ Next, instead of hardcoding the visit to localhost port 8000,
150149
====
151150
[source,python]
152151
----
153-
def test_can_start_a_list_and_retrieve_it_later(self):
152+
def test_can_start_a_todo_list(self):
154153
# Edith has heard about a cool new online to-do app. She goes
155154
# to check out its homepage
156155
self.browser.get(self.live_server_url)
@@ -160,6 +159,9 @@ Next, instead of hardcoding the visit to localhost port 8000,
160159
We can also remove the `if __name__ == '__main__'` from the end if we want,
161160
since we'll be using the Django test runner to launch the FT.
162161

162+
163+
TODO -- FIXES FROM HERE
164+
163165
Now we are able to run our functional tests using the Django test runner, by
164166
telling it to run just the tests for our new `functional_tests` app:
165167

@@ -171,12 +173,12 @@ Found 1 test(s).
171173
System check identified no issues (0 silenced).
172174
F
173175
======================================================================
174-
FAIL: test_can_start_a_list_and_retrieve_it_later (functional_tests.tests.NewVi
175-
sitorTest.test_can_start_a_list_and_retrieve_it_later)
176+
FAIL: test_can_start_a_todo_list (functional_tests.tests.NewVi
177+
sitorTest.test_can_start_a_todo_list)
176178
---------------------------------------------------------------------
177179
Traceback (most recent call last):
178180
File "...goat-book/functional_tests/tests.py", line 59, in
179-
test_can_start_a_list_and_retrieve_it_later
181+
test_can_start_a_todo_list
180182
self.fail("Finish the test!")
181183
AssertionError: Finish the test!
182184
@@ -224,8 +226,8 @@ $ pass:quotes[*python manage.py test*]
224226
Creating test database for alias 'default'...
225227
......F
226228
======================================================================
227-
FAIL: test_can_start_a_list_and_retrieve_it_later (functional_tests.tests.NewVi
228-
sitorTest.test_can_start_a_list_and_retrieve_it_later)
229+
FAIL: test_can_start_a_todo_list (functional_tests.tests.NewVi
230+
sitorTest.test_can_start_a_todo_list)
229231
230232
[...]
231233
AssertionError: Finish the test!
@@ -481,12 +483,12 @@ Found 7 test(s).
481483
System check identified no issues (0 silenced).
482484
......F
483485
======================================================================
484-
FAIL: test_can_start_a_list_and_retrieve_it_later (functional_tests.tests.NewVi
485-
sitorTest.test_can_start_a_list_and_retrieve_it_later)
486+
FAIL: test_can_start_a_todo_list (functional_tests.tests.NewVi
487+
sitorTest.test_can_start_a_todo_list)
486488
---------------------------------------------------------------------
487489
Traceback (most recent call last):
488490
File "...goat-book/functional_tests/tests.py", line 68, in
489-
test_can_start_a_list_and_retrieve_it_later
491+
test_can_start_a_todo_list
490492
self.fail("Finish the test!")
491493
AssertionError: Finish the test!
492494

0 commit comments

Comments
 (0)