From f32110030be7ae9b4dce75cc406ed1fbfe587682 Mon Sep 17 00:00:00 2001 From: erikvw Date: Fri, 26 Jan 2024 00:37:02 -0600 Subject: [PATCH 1/2] fix tests --- runtests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtests.py b/runtests.py index 8b24ae1..8297782 100644 --- a/runtests.py +++ b/runtests.py @@ -2,7 +2,6 @@ import logging from pathlib import Path -from edc_constants.constants import IGNORE from edc_test_utils import DefaultTestSettings, func_main app_name = "edc_glucose" @@ -15,7 +14,7 @@ APP_NAME=app_name, SUBJECT_VISIT_MODEL="edc_visit_tracking.subjectvisit", LIST_MODEL_APP_LABEL="edc_glucose", - EDC_NAVBAR_VERIFY_ON_LOAD=IGNORE, + SILENCED_SYSTEM_CHECKS=["sites.E101", "edc_navbar.E002", "edc_navbar.E003"], EDC_AUTH_SKIP_SITE_AUTHS=True, EDC_AUTH_SKIP_AUTH_UPDATER=True, EXTRA_INSTALLED_APPS=[ From e9274554c3a638c7f5b192bcb9f8686f1c87457c Mon Sep 17 00:00:00 2001 From: erikvw Date: Fri, 26 Jan 2024 15:11:32 -0600 Subject: [PATCH 2/2] research_protocol_config --- edc_glucose/tests/consents.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/edc_glucose/tests/consents.py b/edc_glucose/tests/consents.py index d3616cd..7b62bee 100644 --- a/edc_glucose/tests/consents.py +++ b/edc_glucose/tests/consents.py @@ -1,13 +1,13 @@ from edc_consent.consent_definition import ConsentDefinition from edc_consent.site_consents import site_consents from edc_constants.constants import FEMALE, MALE -from edc_protocol import Protocol +from edc_protocol.research_protocol_config import ResearchProtocolConfig consent_v1 = ConsentDefinition( "edc_glucose.subjectconsent", version="1", - start=Protocol().study_open_datetime, - end=Protocol().study_close_datetime, + start=ResearchProtocolConfig().study_open_datetime, + end=ResearchProtocolConfig().study_close_datetime, age_min=18, age_is_adult=18, age_max=64,