Esempio n. 1
0
 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, [])
Esempio n. 2
0
 def test_credits_empty(self):
     data = generate_credits(
         self.component,
         timezone.now() - timedelta(days=1),
         timezone.now() + timedelta(days=1)
     )
     self.assertEqual(data, [])
Esempio n. 3
0
 def test_credits_empty(self):
     data = generate_credits(
         self.subproject,
         timezone.now() - timedelta(days=1),
         timezone.now() + timedelta(days=1)
     )
     self.assertEqual(data, [])
Esempio n. 4
0
 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')]
     }])
Esempio n. 5
0
 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')]
     }])
Esempio n. 6
0
 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")]}])
Esempio n. 7
0
 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')]}]
     )
Esempio n. 8
0
 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')]}]
     )