10000 More incorrect references. · tecladocode/testing-python-apps@dccb977 · GitHub
[go: up one dir, main page]

Skip to content

Commit dccb977

Browse files
committed
More incorrect references.
1 parent 0718bca commit dccb977

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

section3/video_code/tests/system/app_test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,23 @@ def test_menu_calls_create_blog(self):
3333

3434
def test_menu_calls_print_blogs(self):
3535
with patch('builtins.input') as mocked_input:
36-
with patch('section1.video_code.app.print_blogs') as mocked_print_blogs:
36+
with patch('section3.video_code.app.print_blogs') as mocked_print_blogs:
3737
mocked_input.side_effect = ('l', 'q')
3838
app.menu()
3939

4040
mocked_print_blogs.assert_called()
4141

4242
def test_menu_calls_ask_read_blogs(self):
4343
with patch('builtins.input') as mocked_input:
44-
with patch('section1.video_code.app.ask_read_blog') as mocked_ask_read_blog:
44+
with patch('section3.video_code.app.ask_read_blog') as mocked_ask_read_blog:
4545
mocked_input.side_effect = ('r', 'Test', 'q')
4646
app.menu()
4747

4848
mocked_ask_read_blog.assert_called()
4949

5050
def test_menu_calls_ask_create_post(self):
5151
with patch('builtins.input') as mocked_input:
52-
with patch('section1.video_code.app.ask_create_post') as mocked_ask_create_post:
52+
with patch('section3.video_code.app.ask_create_post') as mocked_ask_create_post:
5353
mocked_input.side_effect = ('p', 'Test', 'New Post', 'New Content', 'q')
5454
app.menu()
5555

@@ -72,7 +72,7 @@ def test_ask_create_blog(self):
7272

7373
def test_ask_read_blog(self):
7474
with patch('builtins.input', return_value='Test'):
75-
with patch('section1.video_code.app.print_posts') as mocked_print_posts:
75+
with patch('section3.video_code.app.print_posts') as mocked_print_posts:
7676
app.ask_read_blog()
7777

7878
mocked_print_posts.assert_called_with(app.blogs['Test'])
@@ -81,7 +81,7 @@ def test_print_posts(self):
8181
blog = app.blogs['Test']
8282
blog.create_post('Post title', 'Post content')
8383

84-
with patch('section1.video_code.app.print_post') as mocked_print_post:
84+
with patch('section3.video_code.app.print_post') as mocked_print_post:
8585
app.print_posts(blog)
8686

8787
mocked_print_post.assert_called_with(blog.posts[0])

0 commit comments

Comments
 (0)
0