How to use the pyqs.main._main function in pyqs

To help you get started, we’ve selected a few pyqs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github spulec / PyQS / tests / test_manager_worker.py View on Github external
def test_main_method(ManagerWorker):
    """
    Test creation of manager process from _main method
    """
    _main(["email1", "email2"], concurrency=2)

    ManagerWorker.assert_called_once_with(
        ['email1', 'email2'], 2, 1, 10, prefetch_multiplier=2,
        region=None, secret_access_key=None, access_key_id=None,
    )
    ManagerWorker.return_value.start.assert_called_once_with()