Connect breast follow-up to the configured cohort
This commit is contained in:
@@ -130,19 +130,16 @@ def test_links_and_load_dates_are_distinct(client, cohort_db):
|
||||
assert set(rows) == set(rows_later)
|
||||
|
||||
|
||||
def test_full_application_registers_cohort_and_preserves_legacy(client):
|
||||
"""The application registers the aggregate while retaining legacy follow-up."""
|
||||
def test_full_application_registers_cohort_and_regular_followup(client):
|
||||
"""The regular follow-up uses the configured reader instead of unrelated fixture rows."""
|
||||
from webapi import create_app
|
||||
|
||||
app = create_app()
|
||||
app.config.update(client.application.config)
|
||||
full = app.test_client()
|
||||
assert full.get('/cama/analisis/indicadores?corte=2026-10-20').status_code == 200
|
||||
assert full.get('/cama/seguimiento').status_code == 200
|
||||
assert full.get('/cama/seguimiento?corte=2026-10-20&meses=0').get_json()['paginacion']['total_items'] == 6
|
||||
assert full.get('/cama/seguimiento?meses=12&resultado=INVASOR').status_code == 400
|
||||
rows = full.get('/cama/seguimiento?corte=2026-10-16&meses=1').get_json()['items']
|
||||
future = next(row for row in rows if row['id_seudonimo'] == 'M-0002')
|
||||
assert future['biopsia_fecha'] is None and future['biopsia'] is None
|
||||
|
||||
|
||||
def test_windows_and_disabled_provider(client):
|
||||
|
||||
Reference in New Issue
Block a user