Usage of objects in HTML parser
This commit is contained in:
@@ -25,7 +25,12 @@ def test_extractDataFromHtml(dataProviderHtmlParser):
|
||||
parser = solo_turnier.html_parser.HtmlParser()
|
||||
actualResult = parser.parseString(htmlString)
|
||||
|
||||
assert actualResult == expected
|
||||
participants = {}
|
||||
for i in actualResult.participants:
|
||||
participants[i] = actualResult.participants[i].__dict__
|
||||
|
||||
assert actualResult.title == expected['title']
|
||||
assert participants == expected['participants']
|
||||
|
||||
@pytest.fixture(params=range(5))
|
||||
def fixture_guessDataFromTitle(request):
|
||||
|
||||
Reference in New Issue
Block a user