def __init__(self): self.class_key = 'GanttRepo' Repository.__init__(self)
def __init__(self): Repository.__init__(self) self.class_key = 'RedmineRepo'
def should_avoid_add_repository_without_setup(self): fake_repo = Repository() fake_repo.class_key = 'fake_class' with pytest.raises(AttributeError): self.syncro.add_repository(fake_repo)