Skip to content

Commit

Permalink
fix update_version in tests, drop 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Aug 3, 2023
1 parent 2fca329 commit ed9cddf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions edc_consent/tests/tests/test_consent.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import datetime, timedelta

from dateutil.relativedelta import relativedelta
from django.test import TestCase, override_settings
from django.test import TestCase, override_settings, tag
from edc_protocol import Protocol
from edc_registration.models import RegisteredSubject
from edc_utils import get_utcnow
Expand Down Expand Up @@ -372,6 +372,7 @@ def test_consent_before_open(self):
version="1.0",
)

@tag("1")
def test_consent_may_update_more_than_one_version(self):
consent_object_factory(
start=self.study_open_datetime,
Expand All @@ -387,7 +388,7 @@ def test_consent_may_update_more_than_one_version(self):
start=self.study_open_datetime + timedelta(days=101),
end=self.study_open_datetime + timedelta(days=150),
version="3.0",
updates_versions=["1.0, 2.0"],
updates_versions=["1.0", "2.0"],
)

def test_consent_object_naive_datetime_start(self):
Expand Down

0 comments on commit ed9cddf

Please sign in to comment.