def test_with_context(self):
        integration = Integration(self.model, self.organization.id,
                                  self.project.id)

        assert integration.model == self.model
        assert integration.org_integration == self.org_integration
        assert integration.project_integration == self.project_integration
        assert integration.get_default_identity() == self.identity
    def test_no_context(self):
        integration = Integration(self.model)
        integration.name = 'Base'

        assert integration.org_integration is None
        assert integration.project_integration is None

        with pytest.raises(NotImplementedError):
            integration.get_default_identity()
Example #3
0
 def test_no_context(self):
     integration = Integration(self.model, self.organization.id)
     integration.name = 'Base'
Example #4
0
    def test_no_context(self):
        integration = Integration(self.model, self.organization.id)
        integration.name = 'Base'

        assert integration.project_integration is None