mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-17 21:25:39 -04:00
Method, Variable, Class Renames in Readarr.Core
Co-Authored-By: ta264 <ta264@users.noreply.github.com>
This commit is contained in:
@@ -24,12 +24,12 @@ namespace NzbDrone.Integration.Test.ApiTests
|
||||
public void should_be_able_to_update()
|
||||
{
|
||||
var config = NamingConfig.GetSingle();
|
||||
config.RenameTracks = false;
|
||||
config.StandardTrackFormat = "{Artist Name} - {Album Title} - {track:00} - {Track Title}";
|
||||
config.RenameBooks = false;
|
||||
config.StandardBookFormat = "{Author Name} - {Book Title}";
|
||||
|
||||
var result = NamingConfig.Put(config);
|
||||
result.RenameTracks.Should().BeFalse();
|
||||
result.StandardTrackFormat.Should().Be(config.StandardTrackFormat);
|
||||
result.RenameBooks.Should().BeFalse();
|
||||
result.StandardBookFormat.Should().Be(config.StandardBookFormat);
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -38,8 +38,8 @@ namespace NzbDrone.Integration.Test.ApiTests
|
||||
IgnoreOnMonoVersions("5.12", "5.14");
|
||||
|
||||
var config = NamingConfig.GetSingle();
|
||||
config.RenameTracks = true;
|
||||
config.StandardTrackFormat = "";
|
||||
config.RenameBooks = true;
|
||||
config.StandardBookFormat = "";
|
||||
|
||||
var errors = NamingConfig.InvalidPut(config);
|
||||
errors.Should().NotBeNull();
|
||||
@@ -51,8 +51,8 @@ namespace NzbDrone.Integration.Test.ApiTests
|
||||
IgnoreOnMonoVersions("5.12", "5.14");
|
||||
|
||||
var config = NamingConfig.GetSingle();
|
||||
config.RenameTracks = true;
|
||||
config.StandardTrackFormat = "{track:00}";
|
||||
config.RenameBooks = true;
|
||||
config.StandardBookFormat = "{track:00}";
|
||||
|
||||
var errors = NamingConfig.InvalidPut(config);
|
||||
errors.Should().NotBeNull();
|
||||
@@ -64,8 +64,8 @@ namespace NzbDrone.Integration.Test.ApiTests
|
||||
IgnoreOnMonoVersions("5.12", "5.14");
|
||||
|
||||
var config = NamingConfig.GetSingle();
|
||||
config.RenameTracks = false;
|
||||
config.StandardTrackFormat = "";
|
||||
config.RenameBooks = false;
|
||||
config.StandardBookFormat = "";
|
||||
|
||||
var errors = NamingConfig.InvalidPut(config);
|
||||
errors.Should().NotBeNull();
|
||||
@@ -77,8 +77,8 @@ namespace NzbDrone.Integration.Test.ApiTests
|
||||
IgnoreOnMonoVersions("5.12", "5.14");
|
||||
|
||||
var config = NamingConfig.GetSingle();
|
||||
config.RenameTracks = true;
|
||||
config.StandardTrackFormat = "";
|
||||
config.RenameBooks = true;
|
||||
config.StandardBookFormat = "";
|
||||
|
||||
var errors = NamingConfig.InvalidPut(config);
|
||||
errors.Should().NotBeNull();
|
||||
@@ -90,7 +90,7 @@ namespace NzbDrone.Integration.Test.ApiTests
|
||||
IgnoreOnMonoVersions("5.12", "5.14");
|
||||
|
||||
var config = NamingConfig.GetSingle();
|
||||
config.RenameTracks = true;
|
||||
config.RenameBooks = true;
|
||||
config.ArtistFolderFormat = "This and That";
|
||||
|
||||
var errors = NamingConfig.InvalidPut(config);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Linq;
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Core.Music;
|
||||
using NzbDrone.Core.Books;
|
||||
using NzbDrone.Core.Qualities;
|
||||
using Readarr.Api.V1.RootFolders;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ using NLog.Config;
|
||||
using NLog.Targets;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Common.EnvironmentInfo;
|
||||
using NzbDrone.Core.MediaFiles.TrackImport.Manual;
|
||||
using NzbDrone.Core.MediaFiles.BookImport.Manual;
|
||||
using NzbDrone.Core.Qualities;
|
||||
using NzbDrone.Integration.Test.Client;
|
||||
using NzbDrone.SignalR;
|
||||
@@ -261,7 +261,7 @@ namespace NzbDrone.Integration.Test
|
||||
artist.MetadataProfileId = 1;
|
||||
artist.Path = Path.Combine(ArtistRootFolder, artist.ArtistName);
|
||||
artist.Monitored = true;
|
||||
artist.AddOptions = new Core.Music.AddArtistOptions();
|
||||
artist.AddOptions = new Core.Books.AddAuthorOptions();
|
||||
Directory.CreateDirectory(artist.Path);
|
||||
|
||||
result = Artist.Post(artist);
|
||||
|
||||
Reference in New Issue
Block a user