Test enhancements:

- timeout
- assert equals because the success case wil return a very specific list
  of a single value: 'OK'
This commit is contained in:
Carlos Nihelton 2023-02-06 22:37:16 -03:00
parent 70819367de
commit 0ea977a6cc
No known key found for this signature in database
GPG Key ID: 6FE346D245197E9A
1 changed files with 2 additions and 1 deletions

View File

@ -1635,6 +1635,7 @@ class TestWSLSetupOptions(TestAPI):
class TestActiveDirectory(TestAPI): class TestActiveDirectory(TestAPI):
@timeout()
async def test_ad(self): async def test_ad(self):
async with start_server('examples/simple.json') as instance: async with start_server('examples/simple.json') as instance:
endpoint = '/active_directory' endpoint = '/active_directory'
@ -1649,4 +1650,4 @@ class TestActiveDirectory(TestAPI):
'password': 'u' 'password': 'u'
} }
result = await instance.post(endpoint, ad_dict) result = await instance.post(endpoint, ad_dict)
self.assertIn('OK', result) self.assertEqual(['OK'], result)