Skip to content

Commit add38de

Browse files
Fix tests cause of new flows.
1 parent eb98c76 commit add38de

3 files changed

Lines changed: 4 additions & 9 deletions

File tree

learnpython/tests/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def check_message(self, message, subject, *args):
4242

4343
self.assertEqual(message.subject, '[Learn Python] {0}'.format(subject))
4444
self.assertEqual(
45-
message.recipients, ['learnpython@igordavydenko.com']
45+
message.recipients, ['we@learnpython.in.ua']
4646
)
4747
self.assertEqual(message.sender, '{0} <{1}>'.format(name, email))
4848
self.assertIn('Learn Python', message.body)

learnpython/tests/test_twill.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,9 @@ def test_index(self):
164164
c.code(200)
165165
c.url(t.url(self.subscribe_url))
166166

167-
c.follow('Medium flow')
167+
c.follow('Web flow')
168168
c.code(200)
169-
c.url(t.url(self.flows_url) + '#medium$')
170-
171-
c.follow('Normal flow')
172-
c.code(200)
173-
c.url(t.url(self.flows_url) + '#normal$')
169+
c.url(t.url(self.flows_url) + '#web$')
174170

175171
c.follow('Advanced flow')
176172
c.code(200)

learnpython/tests/test_webtest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ def test_index(self):
135135
self.check_links(doc('header .left-wrapper p a'), result)
136136

137137
result = (
138-
(self.flows_url + '#medium', 'Medium flow'),
139-
(self.flows_url + '#normal', 'Normal flow'),
138+
(self.flows_url + '#web', 'Web flow'),
140139
(self.flows_url + '#advanced', 'Advanced flow'),
141140
(self.subscribe_url, u'Subscribe →'),
142141
)

0 commit comments

Comments
 (0)