Test parsing of preview round titles as well

This commit is contained in:
Christian Wolf 2022-11-26 08:44:15 +01:00
parent 9a9506174b
commit ffa1e36b6f

View File

@ -32,7 +32,7 @@ def test_extractDataFromHtml(dataProviderHtmlParser):
assert actualResult.title == expected['title']
assert participants == expected['participants']
@pytest.fixture(params=range(5))
@pytest.fixture(params=range(6))
def fixture_guessDataFromTitle(request):
cases = {
'09.07.2022 - ETW, Solos Jun. Beginner Jive': {
@ -60,6 +60,11 @@ def fixture_guessDataFromTitle(request):
'dance': 'Wiener Walzer',
'group': 'Jug.'
},
'09.07.2022 - ETW, Solos Jugend Sichtung Wiener Walzer': {
'class_': 'Sichtung',
'dance': 'Wiener Walzer',
'group': 'Jug.'
},
}
keys = list(cases.keys())
key = keys[request.param]