Page MenuHomePhabricator

TestWikibaseWriteGeneral.test_edit_entity_propogation() of wikibase_edit_tests fails with AssertionError
Open, HighPublic

Description

____________ TestWikibaseWriteGeneral.test_edit_entity_propogation _____________

self = <tests.wikibase_edit_tests.TestWikibaseWriteGeneral testMethod=test_edit_entity_propogation>

    def test_edit_entity_propogation(self):
        """Test that ``ItemPage.editEntity`` propagates changes to claims."""
        testsite = self.get_repo()
        item = pywikibot.ItemPage(testsite)
        claim = pywikibot.Claim(testsite, 'P97339')
        claim.setTarget('test')
        qual = pywikibot.Claim(testsite, 'P97339')
        qual.setTarget('test')
        ref = pywikibot.Claim(testsite, 'P97339')
        ref.setTarget('test')
        claim.addQualifier(qual)
        claim.addSource(ref)
        item.editEntity()
>       self.assertIsNotNone(claim.snak)
E       AssertionError: unexpectedly None