test.exs 954 B

123456789101112131415161718192021222324252627282930
  1. import Config
  2. # Configure your database
  3. #
  4. # The MIX_TEST_PARTITION environment variable can be used
  5. # to provide built-in test partitioning in CI environment.
  6. # Run `mix help test` for more information.
  7. config :toy, Toy.Repo,
  8. username: "postgres",
  9. password: "postgres",
  10. database: "toy_test#{System.get_env("MIX_TEST_PARTITION")}",
  11. hostname: "localhost",
  12. pool: Ecto.Adapters.SQL.Sandbox,
  13. pool_size: 10
  14. # We don't run a server during test. If one is required,
  15. # you can enable the server option below.
  16. config :toy, ToyWeb.Endpoint,
  17. http: [ip: {127, 0, 0, 1}, port: 4002],
  18. secret_key_base: "5gKn0HAkqLHmV6NxcPIRxhEf/tov/tfr9UuV5F50hhi90SRGy6OzA7OPhsL7IHFa",
  19. server: false
  20. # In test we don't send emails.
  21. config :toy, Toy.Mailer, adapter: Swoosh.Adapters.Test
  22. # Print only warnings and errors during test
  23. config :logger, level: :warn
  24. # Initialize plugs at runtime for faster test compilation
  25. config :phoenix, :plug_init_mode, :runtime