<commit_before>defmodule Swoosh.Integration.Adapters.SMTPTest do
  use ExUnit.Case, async: true

  import Swoosh.Email

  @moduletag integration: true

  setup_all do
    config = [
      relay: System.get_env("SMTP_RELAY"),
      username: System.get_env("SMTP_USERNAME"),
      password: System.<PASSWORD>("SMTP_PASSWORD"),
      domain: System.get_env("SMTP_DOMAIN"),
      tls: :always,
      auth: :always
    ]
    {:ok, config: config}
  end

  test "simple deliver", %{config: config} do
    email =
      new
      |> from({"Swoosh SMTP", "swoosh+smtp#{config[:domain]}"})
      |> reply_to("swoosh+replyto#{config[:domain]}")
      |> to("swoosh+to#{config[:domain]}")
      |> cc("swoosh+cc#{config[:domain]}")
      |> bcc("swoosh+bcc#{config[:domain]}")
      |> subject("Swoosh - SMTP integration test")
      |> text_body("This email was sent by the Swoosh library automation testing")
      |> html_body("<p>This email was sent by the Swoosh library automation testing</p>")

    assert {:ok, _response} = Swoosh.Adapters.SMTP.deliver(email, config)
  end
end<commit_msg>Add @ in SMTP integration tests<commit_after>defmodule Swoosh.Integration.Adapters.SMTPTest do
  use ExUnit.Case, async: true

  import Swoosh.Email

  @moduletag integration: true

  setup_all do
    config = [
      relay: System.get_env("SMTP_RELAY"),
      username: System.get_env("SMTP_USERNAME"),
      password: System.<PASSWORD>("SMTP_PASSWORD"),
      domain: System.get_env("SMTP_DOMAIN"),
      tls: :always,
      auth: :always
    ]
    {:ok, config: config}
  end

  test "simple deliver", %{config: config} do
    email =
      new
      |> from({"Swoosh SMTP", "swoosh+smtp@#{config[:domain]}"})
      |> reply_to("swoosh+replyto@#{config[:domain]}")
      |> to("swoosh+to@#{config[:domain]}")
      |> cc("swoosh+cc@#{config[:domain]}")
      |> bcc("swoosh+bcc@#{config[:domain]}")
      |> subject("Swoosh - SMTP integration test")
      |> text_body("This email was sent by the Swoosh library automation testing")
      |> html_body("<p>This email was sent by the Swoosh library automation testing</p>")

    assert {:ok, _response} = Swoosh.Adapters.SMTP.deliver(email, config)
  end
end
{'fraction_non_alphanumeric': 0.15566681838871188, 'fraction_numerical': 0.0, 'mean_word_length': 3.656779661016949, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6801827', 'n_tokens_mistral': 776, 'n_tokens_neox': 747, 'n_words': 157}