We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e02eace commit fef751bCopy full SHA for fef751b
tests/test_rdfa.py
@@ -78,6 +78,15 @@ def test_w3c_rdfaprimer(self):
78
data = rdfae.extract(body, base_url='http://www.example.com/index.html')
79
self.assertJsonLDEqual(data, expected)
80
81
+ # This is for testing that the fix to issue 116 does not affect
82
+ # severely rdfa output even in a presence of a bug in the code
83
+ def mocked_fix_order(x, y, z):
84
+ raise Exception()
85
+
86
+ rdfae._fix_order = mocked_fix_order
87
+ data = rdfae.extract(body, base_url='http://www.example.com/index.html')
88
+ self.assertJsonLDEqual(data, expected)
89
90
def test_wikipedia_xhtml_rdfa(self):
91
fileprefix = 'xhtml+rdfa'
92
body = get_testdata('wikipedia', fileprefix + '.html')
0 commit comments