Skip to content

Commit 67c02e0

Browse files
Apply feedback
Co-authored-by: Bartosz Zaczyński <[email protected]>
1 parent 68d8fc0 commit 67c02e0

File tree

1 file changed

+1
-2
lines changed
  • web-scraping-with-scrapy-and-mongodb/books/tests

1 file changed

+1
-2
lines changed

web-scraping-with-scrapy-and-mongodb/books/tests/test_book.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88

99
def _get_sample_html_content():
1010
html_file_path = Path(__file__).parent / "sample.html"
11-
with html_file_path.open() as html_file:
12-
return html_file.read()
11+
return html_file_path.read_text("utf-8")
1312

1413

1514
class BookSpiderTest(unittest.TestCase):

0 commit comments

Comments
 (0)