Exemplo n.º 1
0
    def test_increment(self):
        user = self.create_user()
        org = self.create_organization(owner=user)
        team = self.create_team(organization=org)
        project = self.create_project(team=team)

        assert Counter.increment(project, 42) == 42
        assert Counter.increment(project, 1) == 43
Exemplo n.º 2
0
 def next_short_id(self):
     from sentry.models import Counter
     return Counter.increment(self)
Exemplo n.º 3
0
    def next_short_id(self):
        from sentry.models import Counter

        return Counter.increment(self)