From ff164e9525071d0a66e5f6908f7a5f8a57b564f2 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 21 May 2017 22:17:38 +0100 Subject: [PATCH] Update test setup --- tests/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/__init__.py b/tests/__init__.py index fb9ff31..3c30234 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -4,7 +4,7 @@ from bs4 import BeautifulSoup class TestClient: - output_path = os.path.realpath('./output') + output_path = os.path.realpath('./public') def get(self, path, JS=True): file_path = self.build_path(path) @@ -37,7 +37,7 @@ class TestCase(unittest.TestCase): self.assertIn(title, content.title.string) def assertHeaderTitle(self, content, title): - header_title = content.find('div', class_="header-content").find('h1') + header_title = content.find('header').find('h2') self.assertIn(title, self.get_children(header_title)) def assertSamePath(self, p1, p2):