mirror of
https://github.com/omaha-consulting/winget.pro.git
synced 2026-10-25 13:19:46 +00:00
15 lines
501 B
Python
15 lines
501 B
Python
from django.test import TestCase, Client
|
|
from django.urls import reverse
|
|
|
|
class APITest(TestCase):
|
|
def setUp(self):
|
|
super().setUp()
|
|
self.client = Client()
|
|
def test_information_required_parts(self):
|
|
response = self.client.get(reverse('api:information'))
|
|
data = response.json()['Data']
|
|
self.assertEqual(
|
|
'github.com/omaha-consulting/winget-private-repository',
|
|
data['SourceIdentifier']
|
|
)
|
|
self.assertEqual(data['ServerSupportedVersions'], ['1.1.0']) |