You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
669 B
26 lines
669 B
using System.IO.Abstractions;
|
|
using Recyclarr.Settings;
|
|
|
|
namespace Recyclarr.Cli.IntegrationTests;
|
|
|
|
[TestFixture]
|
|
internal class ServiceCompatibilityIntegrationTest : CliIntegrationFixture
|
|
{
|
|
[Test]
|
|
public void Load_settings_yml_correctly_when_file_exists()
|
|
{
|
|
const string yamlData =
|
|
"""
|
|
repositories:
|
|
trash_guides:
|
|
clone_url: http://the_url.com
|
|
""";
|
|
|
|
Fs.AddFile(Paths.AppDataDirectory.File("settings.yml"), new MockFileData(yamlData));
|
|
|
|
var settings = Resolve<ISettings<TrashRepository>>();
|
|
|
|
settings.Value.CloneUrl.Should().Be("http://the_url.com");
|
|
}
|
|
}
|