mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
fixed broken tests.
This commit is contained in:
@@ -17,7 +17,6 @@ namespace NzbDrone.Common.Test
|
|||||||
{
|
{
|
||||||
WithTempAsAppPath();
|
WithTempAsAppPath();
|
||||||
|
|
||||||
//Reset config file
|
|
||||||
var configFile = Mocker.Resolve<IAppDirectoryInfo>().GetConfigPath();
|
var configFile = Mocker.Resolve<IAppDirectoryInfo>().GetConfigPath();
|
||||||
|
|
||||||
if (File.Exists(configFile))
|
if (File.Exists(configFile))
|
||||||
|
@@ -23,6 +23,13 @@ namespace NzbDrone.Core.Test.Framework
|
|||||||
{
|
{
|
||||||
Mocker.SetConstant<IHttpProvider>(new HttpProvider());
|
Mocker.SetConstant<IHttpProvider>(new HttpProvider());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void UseRealDisk()
|
||||||
|
{
|
||||||
|
Mocker.SetConstant<IDiskProvider>(new DiskProvider());
|
||||||
|
WithTempAsAppPath();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract class CoreTest<TSubject> : CoreTest where TSubject : class
|
public abstract class CoreTest<TSubject> : CoreTest where TSubject : class
|
||||||
|
@@ -74,7 +74,6 @@ namespace NzbDrone.Test.Common
|
|||||||
[SetUp]
|
[SetUp]
|
||||||
public void TestBaseSetup()
|
public void TestBaseSetup()
|
||||||
{
|
{
|
||||||
WithTempAsAppPath();
|
|
||||||
|
|
||||||
GetType().IsPublic.Should().BeTrue("All Test fixtures should be public to work in mono.");
|
GetType().IsPublic.Should().BeTrue("All Test fixtures should be public to work in mono.");
|
||||||
|
|
||||||
@@ -88,7 +87,6 @@ namespace NzbDrone.Test.Common
|
|||||||
|
|
||||||
MockedRestProvider = new Mock<RestProvider>();
|
MockedRestProvider = new Mock<RestProvider>();
|
||||||
|
|
||||||
|
|
||||||
Directory.CreateDirectory(TempFolder);
|
Directory.CreateDirectory(TempFolder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user