text: """
  Tests for hook to set reviewed date UDA on modified tasks.
  """
  # pylint: disable=missing-docstring
  import uuid
  from datetime import datetime
  from datetime import timedelta
  
  from dateutil.tz import tzutc
  
  from taskw.fields import DateField
  from taskw.task import Task
  from taskw.utils import DATE_FORMAT
  from twpm.hooks import reviewed_hook
  from twpm.hooks.reviewed_hook import DEFAULT_TIME
  
  NOW = datetime.now()
  
  
  def test_reviewed():
      expected_review_date = NOW.replace(
          hour=DEFAULT_TIME.hour,
          minute=DEFAULT_TIME.minute,
          second=DEFAULT_TIME.second,
          tzinfo=tzutc(),
      ).strftime(DATE_FORMAT)
  
      entry_date = NOW - timedelta(days=1)
      task_data = {
          "status": "pending",
          "description": "Super urgent test task",
          "tags": ["@home"],
          "entry": entry_date.strftime(DATE_FORMAT),
          "uuid": str(uuid.uuid4()),
      }
      task_udas = {
          "reviewed": DateField(label="Reviewed"),
      }
      test_task = Task(task_data, task_udas)
      reviewed_hook.main(test_task)
      actual_reviewed_date = test_task["reviewed"].strftime(DATE_FORMAT)
      assert actual_reviewed_date == expected_review_date
  