|
@@ -20,6 +20,17 @@ from sentry.testutils import TestCase
|
|
|
|
|
|
|
|
|
class GroupSerializerTest(TestCase):
|
|
|
+ def test_project(self):
|
|
|
+ user = self.create_user()
|
|
|
+ group = self.create_group()
|
|
|
+
|
|
|
+ result = serialize(group, user)
|
|
|
+ assert result['project']
|
|
|
+ assert 'id' in result['project']
|
|
|
+ assert 'name' in result['project']
|
|
|
+ assert 'slug' in result['project']
|
|
|
+ assert 'platform' in result['project']
|
|
|
+
|
|
|
def test_is_ignored_with_expired_snooze(self):
|
|
|
now = timezone.now().replace(microsecond=0)
|
|
|
|