# What this PR does ## Which issue(s) this PR closes Closes https://github.com/grafana/oncall-private/issues/2590 ## Checklist - [x] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - will be done in https://github.com/grafana/oncall-private/issues/2591 - [x] Added the relevant release notes label (see labels prefixed w/ `release:`). These labels dictate how your PR will show up in the autogenerated release notes. - will be done in https://github.com/grafana/oncall-private/issues/2591 --------- Co-authored-by: Dominik <dominik.broj@grafana.com> Co-authored-by: Maxim Mordasov <maxim.mordasov@grafana.com>
14 lines
385 B
Python
14 lines
385 B
Python
import factory
|
|
|
|
from apps.google.models import GoogleOAuth2User
|
|
from common.utils import UniqueFaker
|
|
|
|
|
|
class GoogleOAuth2UserFactory(factory.DjangoModelFactory):
|
|
google_user_id = UniqueFaker("pyint")
|
|
access_token = factory.Faker("password")
|
|
refresh_token = factory.Faker("password")
|
|
oauth_scope = factory.Faker("word")
|
|
|
|
class Meta:
|
|
model = GoogleOAuth2User
|