Skip to content

Commit c2b59b1

Browse files
Fix test case for event, fix formatting
1 parent 0f5a632 commit c2b59b1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/samples/schema.org/Event.002.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"offers": "foo-fighters-everlong-buy.html",
3838
"url": "foo-fighters-everlong.html"},
3939
"type": "http://schema.org/MusicRecording"}],
40-
"video": {"properties": {"description": "Catch this exclusive interview with\n Dave Grohl and the Foo Fighters about their new album, Rope.",
40+
"video": {"properties": {"description": "Catch this exclusive interview with Dave Grohl and the Foo Fighters about their new album, Rope.",
4141
"duration": "T1M33S",
4242
"name": "Interview with the Foo Fighters",
4343
"thumbnail": "foo-fighters-interview-thumb.jpg"},

tests/test_microdata.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ def test_schemaorg_MusicRecording(self):
3838
self.assertEqual(data, expected)
3939

4040
def test_schemaorg_Event(self):
41-
for i in [1, 2, 3, 4, 8]:
41+
for i in [1, 2, 3, 4, 8]:
4242
body = get_testdata('schema.org', 'Event.{:03d}.html'.format(i))
4343
expected = json.loads(get_testdata('schema.org', 'Event.{:03d}.json'.format(i)).decode('UTF-8'))
4444

4545
mde = MicrodataExtractor()
4646
data = mde.extract(body)
47+
4748
self.assertEqual(data, expected)
4849

4950
def test_w3c_textContent_values(self):

0 commit comments

Comments
 (0)