Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Jan 24, 2024
1 parent 6e47f79 commit e385827
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions edc_pharmacy/tests/consents.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from edc_constants.constants import FEMALE, MALE
from edc_protocol import Protocol

v1_consent = ConsentDefinition(
consent_v1 = ConsentDefinition(
"edc_pharmacy.subjectconsent",
version="1",
start=Protocol().study_open_datetime,
Expand All @@ -13,4 +13,4 @@
age_max=64,
gender=[MALE, FEMALE],
)
site_consents.register(v1_consent)
site_consents.register(consent_v1)
3 changes: 3 additions & 0 deletions edc_pharmacy/tests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

from edc_pharmacy.model_mixins import StudyMedicationCrfModelMixin

from .consents import consent_v1


class SubjectConsent(
SiteModelMixin,
Expand All @@ -35,6 +37,7 @@ class SubjectConsent(


class SubjectScreening(ScreeningModelMixin, BaseUuidModel):
consent_definition = consent_v1
objects = SubjectIdentifierManager()


Expand Down
4 changes: 2 additions & 2 deletions edc_pharmacy/tests/visit_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from edc_visit_schedule.visit import Crf, CrfCollection, Visit
from edc_visit_schedule.visit_schedule import VisitSchedule

from edc_pharmacy.tests.consents import v1_consent
from edc_pharmacy.tests.consents import consent_v1

app_label = "edc_pharmacy"

Expand Down Expand Up @@ -50,7 +50,7 @@
name="schedule",
onschedule_model="edc_pharmacy.onschedule",
offschedule_model="edc_pharmacy.offschedule",
consent_definitions=[v1_consent],
consent_definitions=[consent_v1],
appointment_model="edc_appointment.appointment",
)

Expand Down

0 comments on commit e385827

Please sign in to comment.