mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-18 06:01:44 -05:00
11 lines
289 B
Python
11 lines
289 B
Python
|
|
def test_job_schema_doesnt_return_notifications(sample_notification):
|
||
|
|
from app.schemas import job_schema
|
||
|
|
|
||
|
|
job = sample_notification.job
|
||
|
|
assert job.notifications.count() == 1
|
||
|
|
|
||
|
|
data, errors = job_schema.dump(job)
|
||
|
|
|
||
|
|
assert not errors
|
||
|
|
assert 'notifications' not in data
|