Example #1
0
def topics_in_database(step):
    for topic_dict in step.hashes:
        create_category(**topic_dict)
Example #2
0
 def test_create_category(self):
     name = "Education"
     slug = "education"
     category = create_category(name=name)
     self.assertEqual(category.name, name)
     self.assertEqual(category.slug, slug)
Example #3
0
def topics_in_database(step):
    for topic_dict in step.hashes:
        create_category(**topic_dict)
Example #4
0
 def test_create_category(self):
     name = "Education"
     slug = "education"
     category = create_category(name=name)
     self.assertEqual(category.name, name)
     self.assertEqual(category.slug, slug)