rename availability policies
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
j3d1 2024-02-23 18:51:52 +01:00
parent f4894d3a8c
commit 52dbe93d3c
3 changed files with 6 additions and 4 deletions

View file

@ -43,7 +43,8 @@ class CombinedApiTestCase(UserTestMixin, CategoryTestMixin, TagTestMixin, Proper
def test_policy_api(self):
response = client.get('/api/availability_policies/', self.f['local_user1'])
self.assertEqual(response.status_code, 200)
self.assertEqual(response.json(), ['private', 'friends', 'internal', 'public'])
self.assertEqual(response.json(), [['sell', 'Sell'], ['rent', 'Rent'], ['lend', 'Lend'], ['share', 'Share'],
['private', 'Private']])
def test_combined_api_anonymous(self):
response = anonymous_client.get('/api/info/')