import dataclasses

from reviews.notifications import PullRequestNotification


def test_model_with_required_fields():
    model = PullRequestNotification(
        org="apoclyps",
        repository="Code Review Manager",
        name="Pull Request Approved",
        number=1,
    )

    assert dataclasses.asdict(model) == {
        "org": "apoclyps",
        "repository": "Code Review Manager",
        "name": "Pull Request Approved",
        "number": 1,
    }

bbbd50a40349d383590b984fa46a1b5b3d621b06
<mask token>

<mask token>


def test_model_with_required_fields():
    model = PullRequestNotification(org='apoclyps', repository=
        'Code Review Manager', name='Pull Request Approved', number=1)
    assert dataclasses.asdict(model) == {'org': 'apoclyps', 'repository':
        'Code Review Manager', 'name': 'Pull Request Approved', 'number': 1}

import dataclasses
from reviews.notifications import PullRequestNotification


def test_model_with_required_fields():
    model = PullRequestNotification(org='apoclyps', repository=
        'Code Review Manager', name='Pull Request Approved', number=1)
    assert dataclasses.asdict(model) == {'org': 'apoclyps', 'repository':
        'Code Review Manager', 'name': 'Pull Request Approved', 'number': 1}

import dataclasses

from reviews.notifications import PullRequestNotification


def test_model_with_required_fields():
    model = PullRequestNotification(
        org="apoclyps",
        repository="Code Review Manager",
        name="Pull Request Approved",
        number=1,
    )

    assert dataclasses.asdict(model) == {
        "org": "apoclyps",
        "repository": "Code Review Manager",
        "name": "Pull Request Approved",
        "number": 1,
    }
