12 lines
412 B
Python
12 lines
412 B
Python
from pathlib import Path
|
|
|
|
|
|
def test_new_ae_records_default_to_follow_up_status():
|
|
crud_source = Path("app/crud/ae.py").read_text(encoding="utf-8")
|
|
model_source = Path("app/models/ae.py").read_text(encoding="utf-8")
|
|
|
|
assert 'status="FOLLOW_UP"' in crud_source
|
|
assert 'default="FOLLOW_UP"' in model_source
|
|
assert 'status="NEW"' not in crud_source
|
|
assert 'default="NEW"' not in model_source
|