def test_credits_empty(self): data = generate_credits( timezone.now() - timedelta(days=1), timezone.now() + timedelta(days=1), translation__component=self.component, ) self.assertEqual(data, [])
def test_credits_empty(self): data = generate_credits( self.component, timezone.now() - timedelta(days=1), timezone.now() + timedelta(days=1) ) self.assertEqual(data, [])
def test_credits_empty(self): data = generate_credits( self.subproject, timezone.now() - timedelta(days=1), timezone.now() + timedelta(days=1) ) self.assertEqual(data, [])
def test_credits_one(self): self.add_change() data = generate_credits(self.component, timezone.now() - timedelta(days=1), timezone.now() + timedelta(days=1)) self.assertEqual(data, [{ 'Czech': [('*****@*****.**', 'Weblate Test')] }])
def test_credits_one(self): self.add_change() data = generate_credits(self.subproject, timezone.now() - timedelta(days=1), timezone.now() + timedelta(days=1)) self.assertEqual(data, [{ 'Czech': [('*****@*****.**', 'Weblate Test')] }])
def test_credits_one(self): self.add_change() data = generate_credits( None, timezone.now() - timedelta(days=1), timezone.now() + timedelta(days=1), translation__component=self.component, ) self.assertEqual(data, [{"Czech": [("*****@*****.**", "Weblate Test")]}])
def test_credits_one(self): self.add_change() data = generate_credits( self.component, timezone.now() - timedelta(days=1), timezone.now() + timedelta(days=1) ) self.assertEqual( data, [{'Czech': [('*****@*****.**', 'Weblate Test')]}] )
def test_credits_one(self): self.add_change() data = generate_credits( self.subproject, timezone.now() - timedelta(days=1), timezone.now() + timedelta(days=1) ) self.assertEqual( data, [{'Czech': [('*****@*****.**', 'Weblate Test')]}] )