-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mq-run
/mq-send-test
: use default config by default
- Loading branch information
1 parent
4b0a632
commit d3f12be
Showing
5 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,12 +39,12 @@ was_queued = (getattr(send_result, 'queued', None) is not False) | |
|
||
The `mq-run` script sends all queued messages to an SMTP server: | ||
|
||
mq-run /path/to/config.ini /path/to/queue | ||
mq-run --config=/path/to/config.ini /path/to/queue | ||
|
||
If you want to test your configuration you can send a test message to ensure | ||
the mail flow is set up correctly: | ||
|
||
mq-send-test /path/to/config.ini /path/to/queue [email protected] | ||
mq-send-test --config=/path/to/config.ini /path/to/queue [email protected] | ||
|
||
### Configuration (mq-run) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,13 @@ def ctx(): | |
def test_mq_send_test_can_send_test_message(ctx, tmp_path): | ||
config_path = create_ini(ctx.hostname, ctx.listen_port, dir_path=str(tmp_path)) | ||
|
||
cmd = ['mq-send-test', config_path, '--quiet', '[email protected]', '[email protected]'] # noqa: E501 (line too long) | ||
cmd = [ | ||
'mq-send-test', | ||
f'--config={config_path}', | ||
'--quiet', | ||
'[email protected]', | ||
'[email protected]', | ||
] | ||
rc = send_test_message_main(argv=cmd, return_rc_code=True) | ||
assert rc == 0 | ||
|
||
|