From 04ed33b11f9f571a3df63832423ec6aefb1ee8d4 Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Sun, 9 Jun 2024 14:46:46 -0500 Subject: [PATCH] fixup! wip --- Directory.Packages.props | 1 + .../IntegrationTestFixture2.cs | 3 +++ .../Recyclarr.Cli.IntegrationTests.csproj | 3 +++ .../Tests/PlatformIntegrationTest.cs | 8 +------- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index a5c3b451..f77e6e5b 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -35,6 +35,7 @@ + diff --git a/tests/Recyclarr.Cli.IntegrationTests/IntegrationTestFixture2.cs b/tests/Recyclarr.Cli.IntegrationTests/IntegrationTestFixture2.cs index 74573ffa..be5fcf35 100644 --- a/tests/Recyclarr.Cli.IntegrationTests/IntegrationTestFixture2.cs +++ b/tests/Recyclarr.Cli.IntegrationTests/IntegrationTestFixture2.cs @@ -61,6 +61,9 @@ public abstract class IntegrationTestFixture2 : IDisposable builder.RegisterInstance(Console).As(); builder.RegisterInstance(Logger).As(); + // Platform related mocks + builder.RegisterMockFor(); + builder.RegisterMockFor(); builder.RegisterMockFor(); builder.RegisterMockFor(m => diff --git a/tests/Recyclarr.Cli.IntegrationTests/Recyclarr.Cli.IntegrationTests.csproj b/tests/Recyclarr.Cli.IntegrationTests/Recyclarr.Cli.IntegrationTests.csproj index 919c615e..47b1366d 100644 --- a/tests/Recyclarr.Cli.IntegrationTests/Recyclarr.Cli.IntegrationTests.csproj +++ b/tests/Recyclarr.Cli.IntegrationTests/Recyclarr.Cli.IntegrationTests.csproj @@ -3,4 +3,7 @@ + + + diff --git a/tests/Recyclarr.Cli.IntegrationTests/Tests/PlatformIntegrationTest.cs b/tests/Recyclarr.Cli.IntegrationTests/Tests/PlatformIntegrationTest.cs index e6adb586..e44c6145 100644 --- a/tests/Recyclarr.Cli.IntegrationTests/Tests/PlatformIntegrationTest.cs +++ b/tests/Recyclarr.Cli.IntegrationTests/Tests/PlatformIntegrationTest.cs @@ -12,14 +12,8 @@ namespace Recyclarr.Cli.IntegrationTests.Tests; [TestFixture] public class PlatformIntegrationTest : IntegrationTestFixture2 { - protected override void RegisterStubsAndMocks(ContainerBuilder builder) - { - base.RegisterStubsAndMocks(builder); - builder.RegisterMockFor(); - } - [Test, AutoMockData] - public async Task Migrate_app_data_on_mac_os_dotnet8(CommandContext ctx) + public async Task Sync_successful(CommandContext ctx) { // The "old" app data directory has to be in place before we create SyncCommand, since we want the // automatic/transparent move of that directory to happen before the migration system checks it.