diff --git a/pub_sub/python/http/README.md b/pub_sub/python/http/README.md index 9a40d047..7aeb8b95 100644 --- a/pub_sub/python/http/README.md +++ b/pub_sub/python/http/README.md @@ -16,31 +16,25 @@ And one subscriber: ### Run Python message publisher with Dapr -1. Open a new terminal window and navigate to `checkout` directory: - -```bash -cd checkout -``` - -2. Install dependencies: +1. Install dependencies: ```bash +cd pub_sub/python/http/checkout pip3 install -r requirements.txt ``` - + 3. Run the Python publisher app with Dapr: ### Run Python message subscriber with Dapr -1. Open a new terminal window and navigate to `checkout` directory: - -```bash -cd order-processor -``` - 2. Install dependencies: ```bash +cd pub_sub/python/http/order-processor pip3 install -r requirements.txt ``` - + 3. Run the Python subscriber app with Dapr: diff --git a/pub_sub/python/sdk/README.md b/pub_sub/python/sdk/README.md index 7b13c677..9a218ad6 100644 --- a/pub_sub/python/sdk/README.md +++ b/pub_sub/python/sdk/README.md @@ -16,22 +16,17 @@ And one subscriber: ### Run Python message publisher with Dapr -1. Open a new terminal window and navigate to `checkout` directory: - -```bash -cd checkout -``` - -2. Install dependencies: +1. Install dependencies: ```bash +cd pub_sub/python/sdk/checkout pip3 install -r requirements.txt ``` + 3. Run the Python publisher app with Dapr: @@ -39,10 +34,10 @@ pip3 install -r requirements.txt name: Run python publisher expected_stdout_lines: - "You're up and running! Both Dapr and your app logs will appear here." - - '== APP == Received message "Message on A" on topic "A"' - - '== APP == Received message "Message on C" on topic "C"' - - "Exited Dapr successfully" + - '== APP == INFO:root:Published data: {"orderId": 1}' + - '== APP == INFO:root:Published data: {"orderId": 2}' - "Exited App successfully" + - "Exited Dapr successfully" expected_stderr_lines: output_match_mode: substring working_dir: ./checkout @@ -57,31 +52,24 @@ dapr run --app-id checkout --components-path ../../../components/ -- python3 app ### Run Python message subscriber with Dapr -1. Open a new terminal window and navigate to `checkout` directory: - -```bash -cd order-processor -``` - -2. Install dependencies: - ```bash +cd pub_sub/python/sdk/order-processor-fastapi pip3 install -r requirements.txt ``` -3. Run the Python subscriber app with Dapr: + + +2. Run the Python subscriber app with Dapr: