daily-tracker

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

test.exs (1536B)


      1 import Config
      2 
      3 # Only in tests, remove the complexity from the password hashing algorithm
      4 config :bcrypt_elixir, :log_rounds, 1
      5 
      6 # Configure your database
      7 #
      8 # The MIX_TEST_PARTITION environment variable can be used
      9 # to provide built-in test partitioning in CI environment.
     10 # Run `mix help test` for more information.
     11 config :daily_tracker, DailyTracker.Repo,
     12   username: "postgres",
     13   password: "postgres",
     14   hostname: "localhost",
     15   database: "daily_tracker_test#{System.get_env("MIX_TEST_PARTITION")}",
     16   pool: Ecto.Adapters.SQL.Sandbox,
     17   pool_size: System.schedulers_online() * 2
     18 
     19 # We don't run a server during test. If one is required,
     20 # you can enable the server option below.
     21 config :daily_tracker, DailyTrackerWeb.Endpoint,
     22   http: [ip: {127, 0, 0, 1}, port: 4002],
     23   secret_key_base: "hzi8SbeS6auLvYpOK+OIp7Qmb0GnR1/g80cd88Tg/P+qO1nQbjOhiUBtdXI3XBs9",
     24   server: false
     25 
     26 # In test we don't send emails
     27 config :daily_tracker, DailyTracker.Mailer, adapter: Swoosh.Adapters.Test
     28 
     29 # Disable swoosh api client as it is only required for production adapters
     30 config :swoosh, :api_client, false
     31 
     32 # Print only warnings and errors during test
     33 config :logger, level: :warning
     34 
     35 # Initialize plugs at runtime for faster test compilation
     36 config :phoenix, :plug_init_mode, :runtime
     37 
     38 # Enable helpful, but potentially expensive runtime checks
     39 config :phoenix_live_view,
     40   enable_expensive_runtime_checks: true
     41 
     42 # Sort query params output of verified routes for robust url comparisons
     43 config :phoenix,
     44   sort_verified_routes_query_params: true