

@unittest.skip('creating tags currently disabled')
def test_create_tag(self):
    self.assertTrue(self.client.login(username='adrian', password='ADRIAN'))
    url = reverse('create-tag', kwargs={
        'app': APP,
        'object_type': 'committeemeeting',
        'object_id': self.meeting_1.id,
    })
    res = self.client.post(url, {
        'tag': 'new tag',
    })
    self.assertEqual(res.status_code, 200)
    self.new_tag = Tag.objects.get(name='new tag')
    self.assertIn(self.new_tag, self.meeting_1.tags)

dataset/ETHPy150Open ofri/Open-Knesset/committees/tests.py CommitteeMeetingDetailViewTest.test_create_tag/original