2021-02-16 19:29:41 +08:00
|
|
|
import Config
|
2021-01-08 03:55:45 +08:00
|
|
|
|
|
|
|
# We don't run a server during test. If one is required,
|
|
|
|
# you can enable the server option below.
|
2021-03-04 05:56:28 +08:00
|
|
|
config :livebook, LivebookWeb.Endpoint,
|
2021-01-08 03:55:45 +08:00
|
|
|
http: [port: 4002],
|
|
|
|
server: false
|
|
|
|
|
|
|
|
# Print only warnings and errors during test
|
2022-08-03 20:32:32 +08:00
|
|
|
config :logger, level: :warning
|
2021-02-11 19:42:17 +08:00
|
|
|
|
2024-06-15 00:59:54 +08:00
|
|
|
# Disable authentication in tests
|
2023-08-04 03:36:47 +08:00
|
|
|
config :livebook,
|
2024-06-15 00:59:54 +08:00
|
|
|
authentication: :disabled,
|
2023-08-04 03:36:47 +08:00
|
|
|
check_completion_data_interval: 300,
|
|
|
|
iframe_port: 4003
|
2021-04-14 20:28:00 +08:00
|
|
|
|
2022-02-16 02:28:14 +08:00
|
|
|
data_path = Path.expand("tmp/livebook_data/test")
|
|
|
|
|
|
|
|
# Clear data path for tests
|
|
|
|
if File.exists?(data_path) do
|
|
|
|
File.rm_rf!(data_path)
|
|
|
|
end
|
|
|
|
|
2024-01-06 01:17:39 +08:00
|
|
|
config :livebook,
|
|
|
|
data_path: data_path,
|
|
|
|
agent_name: "chonky-cat"
|
2023-12-19 16:14:03 +08:00
|
|
|
|
2024-03-27 03:20:07 +08:00
|
|
|
config :livebook, Livebook.Apps.Manager, retry_backoff_base_ms: 0
|