Skip to content

Test Mode appears to not be working #62

Description

@mitchmeyer1

v 0.11
Converting to test mode for my test suite. This code sends a message not in test mode

@mailgun = Mailgun(api_key: ENV['MAILGUN_API_KEY'], domain: ENV['MAILGUN_DOMAIN'], test_mode: true )
message_params = {
      from: ENV['MAILGUN_USER_NAME'],
      to: "mitchmeyer1@gmail.com",
      subject: "You've been invited to join the BlueStreak Platform!",
      html: html_output.to_str
    }.merge(opts)
   @mailgun.messages.send_email(message_params)

And (part of) the mailgun logs for my request:

...
flags": {
        "is-routed": false,
        "is-authenticated": true,
        "is-system-test": false,
        "is-test-mode": false
    },
...

Note the "is-test-mode": false

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions