Beispiel #1
0
def test_entity_load_redirected_entity(fx_client: Client,
                                       fx_redirected_entity: Entity):
    canonical_id = EntityId('Q3571994')
    alternate_id = EntityId('Q16231742')
    assert fx_redirected_entity.id == alternate_id
    fx_redirected_entity.load()
    assert fx_redirected_entity.id == canonical_id
Beispiel #2
0
def test_entity_load(fx_unloaded_entity: Entity):
    fx_unloaded_entity.load()
    with (ENTITY_FIXTURES_PATH / 'Q1299.json').open('r') as f:
        assert fx_unloaded_entity.data == json.load(f)['entities']['Q1299']