File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
samples/01-carapp/carapp/apps/car/tests Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,8 @@ def test_get_cars(self, mock_get_all):
4545 def test_get_car_html_with_render (self , mock_get_all ):
4646 res = self .client .get ("/car-as-router/html/outside" )
4747 assert res .status_code == 200
48- print (res .content )
4948 assert (
5049 res .content
51- == b'<!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="UTF-8">\n <title>Index.html</title>\n </head>\n <body>\n \n <p>Mercedes</p>\n \n </body>\n </html>'
50+ == b'<!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0"> \n < title>Index.html</title>\n </head>\n <body>\n \n <p>Mercedes</p>\n \n </body>\n </html>'
5251 )
5352 assert res .template .name == "car/list.html"
You can’t perform that action at this time.
0 commit comments