mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-22 11:41:02 +02:00
Rev gateway tests
This commit is contained in:
parent
5cbd4d75e5
commit
200506e555
1 changed files with 5 additions and 1 deletions
|
|
@ -184,7 +184,11 @@ class TestApi:
|
|||
api = Api(port=8080)
|
||||
api.run()
|
||||
|
||||
mock_run_app.assert_called_once_with(api.app_factory(), port=8080)
|
||||
# Verify run_app was called once with the correct port
|
||||
mock_run_app.assert_called_once()
|
||||
args, kwargs = mock_run_app.call_args
|
||||
assert len(args) == 1 # Should have one positional arg (the coroutine)
|
||||
assert kwargs == {'port': 8080} # Should have port keyword arg
|
||||
|
||||
def test_api_components_initialization(self):
|
||||
"""Test that all API components are properly initialized"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue