# Path: dftimewolf/lib/resources.py
# class Recipe(object):
#   def __init__(self,
#                description: str,
#                contents: Dict[str, Any],
#                args: List[Tuple[str, str, Any]]) -> None:
#   def GetHelpString(self) -> str:


import unittest
from dftimewolf.lib import resources


class RecipeTest(unittest.TestCase):
  """Tests Recipe."""

  _ARGS = [
      ('test', 'Test argument', None),
  ]

  _CONTENTS = {
      'name': 'test',
      'short_description': 'recipe description',
      'modules': [{
          'wants': [],
          'name': 'TestModule',
          'args': {
              'test': '@test'
          },
      }],
  }

  _DESCRIPTION = 'test recipe'

  def testInitialize(self):
    """Tests the __init__ function."""
    recipe = resources.Recipe(self._DESCRIPTION, self._CONTENTS, self._ARGS)
    self.assertIsNotNone(recipe)

  def testGetHelpString(self):
    """Tests the GetHelpString function."""

# Path: dftimewolf/lib/resources.py
# class Recipe(object):
#   def __init__(self,
#                description: str,
#                contents: Dict[str, Any],
#                args: List[Tuple[str, str, Any]]) -> None:
#   def GetHelpString(self) -> str:


# Path: tests/lib/resources.py
import unittest
from dftimewolf.lib import resources



class RecipeTest(unittest.TestCase):
  """Tests Recipe."""

  _ARGS = [
      ('test', 'Test argument', None),
  ]

  _CONTENTS = {
      'name': 'test',
      'short_description': 'recipe description',
      'modules': [{
          'wants': [],
          'name': 'TestModule',
          'args': {
              'test': '@test'
          },
      }],
  }

  _DESCRIPTION = 'test recipe'

  def testInitialize(self):
    """Tests the __init__ function."""
    recipe = resources.Recipe(self._DESCRIPTION, self._CONTENTS, self._ARGS)
    self.assertIsNotNone(recipe)

  def testGetHelpString(self):
    """Tests the GetHelpString function."""

    recipe = resources.Recipe(self._DESCRIPTION, self._CONTENTS, self._ARGS)