You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
380 B

  1. import unittest
  2. from data_import.pipeline.catalog import Options
  3. from projects.models import ProjectType
  4. class TestOptions(unittest.TestCase):
  5. def test_return_at_least_one_option(self):
  6. for task in ProjectType:
  7. with self.subTest(task=task):
  8. options = Options.filter_by_task(task)
  9. self.assertGreaterEqual(len(options), 1)