Skip to content

Commit

Permalink
Add: Another unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
n-thumann authored and greenbonebot committed Mar 6, 2025
1 parent 1f718d8 commit 6dee935
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/nvd/source/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,10 @@ async def test_sources_source_identifier(self):

with self.assertRaises(StopAsyncIteration):
await anext(it)

async def test_context_manager(self):
async with self.api:
pass

self.http_client.__aenter__.assert_awaited_once()
self.http_client.__aexit__.assert_awaited_once()

0 comments on commit 6dee935

Please sign in to comment.