Skip to content

Commit 73e0a18

Browse files
committed
Merge branch 'main' into issue_6/improve_webhook_server
2 parents 835a27e + cc39ea7 commit 73e0a18

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

aries_cloudcontroller/aries_controller.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ async def init_webhook_server(
6262
is_multitenant=self.is_multitenant,
6363
)
6464
await self.webhook_server.listen_webhooks()
65-
logger.info(f"Webhook server started on {self.webhook_server.webhook_host}.")
65+
logger.info(
66+
f"Webhook server started on {self.webhook_server.webhook_host}."
67+
)
6668
except Exception as exc:
6769
logger.error(f"Listening webhooks failed! {exc!r} occurred.")
6870
raise Exception(f"{exc!r}")

tests/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
### Running tests locally
2+
3+
In order to run the tests locally, e.g. for development, make sure you have installed the requirements by running `pip install -r requirements.txt` in the root of the project.
4+
5+
You can now run all tests py running `pytest` in the root of the project. in order to run specific tests you can specifying the test file to run, e.g. `pytest tests/path/to/your/testfile.py`. You can also run individual tests only using the `-k` flag of pytest `pytest tests/path/to/your/testfile.py -k 'test_your_whatever'` where `test_your_whatever` is the name of the test definition. For more information, please, refer to the [pytest docs](https://docs.pytest.org/en/).
6+
7+
It is recommended to run the tests locally (and to add tests to your chnages and code additions). Tests will automatically run when trying to merge into or push to master. The merge or push will be rejected if any test fails.

0 commit comments

Comments
 (0)